Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
v cat - Concatenate and print files<br />
v cd - Change working directory<br />
v chgrp - Change file group ownership<br />
v chmod - Change file modes<br />
v chown - Change file ownership<br />
v cp - Copy files<br />
v dirname - Return directory portion of pathname<br />
v find - search a file hierarchy<br />
v head - Copy the first part of files<br />
v getconf - Get configuration values<br />
v ln - Link files<br />
v ls - List directory contents<br />
v mkdir - Make directories<br />
v mv - Move files<br />
v pr - Print files<br />
v pwd - Return working directory name<br />
v pwdx - Print working directory expanded<br />
v rm - Remove directory entries<br />
v rmdir - Remove directories<br />
v tail - Display the last part of a file<br />
v touch - Change file access and modification times<br />
v umask - Get or set the file mode creation mask<br />
[ Legal | AS/400 Glossary ]<br />
basename - Return non-directory portion of pathname<br />
Synopsis<br />
Description<br />
basename string [suffix]<br />
You can use basename to delete any prefix ending with the last slash (/) character<br />
present in string, and a suffix, if specified. The resulting filename is written to<br />
standard output. The string is processed using the following rules:<br />
v If string consists entirely of slash characters, a single slash character is written to<br />
standard output and processing ends.<br />
v If there are any trailing slash characters in string, they are removed.<br />
v If there are any slash characters remaining in string, the prefix of string up to and<br />
including the last slash character is removed.<br />
v If a suffix is specified, and is not identical to the characters remaining in string,<br />
and is identical to a suffix of the characters remaining in string, the suffix is<br />
removed. Otherwise string is not modified. It is not an error if suffix is not found<br />
in string.<br />
Chapter 4. Utilities 43