Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

String Operations on Paths

(cmds: realpath, basename and dirname)


NarendraP

Learn How to Automate Common Tasks with Bash Shell Scripting


String Operations on Paths
 realpath : Converts each filename argument to an absolute pathname but it do not validate the path.
 basename:
 Strips directory information
 Strips suffixes from file names
 dirname : It will delete any suffix beginning with the last slash character and return the result

Learn How to Automate Common Tasks with Bash Shell Scripting


Thank you

You might also like