User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
shell [2012-09-09 09:50 CEST]
dominik [Determine script location path]
shell [2013-02-22 23:20 CET] (current)
dominik [Extract parts of filename]
Line 43: Line 43:
 echo ${testfile##​*/​} echo ${testfile##​*/​}
-# extract dirname (=path only) ("/​tmp/​test"​)+# extract dirname (=path only) ("/​tmp/​test"​) ​  [Warning: May differ from dirname]
 echo ${testfile%/​*} echo ${testfile%/​*}
 </​code>​ </​code>​
shell.txt · Last modified: 2013-02-22 23:20 CET by dominik