Shell scripts, file name and extension

Classified in : Development - Tags : shell, script

When you write shell scripts, it's often the case the file name without extension, the extension etc is needed, to be able to modify the file names.

Traditionally one uses the commands basename and dirname.

But there's a better solution, to use operators in shell variables as sated in the chapter od the Bash Scripting FAQ about the subject.

 

Happy scripting  ! ! wink

[ no comments ]

© Le Computing Froggy  !


Notice: Undefined property: plxMotor::$version in /home/lroche/TF_Computing/plugins/ajaxrating/ajaxrating.php on line 220
  • Article Currently 2.58/5
  • 1
  • 2
  • 3
  • 4
  • 5

 Rating : 2.6/5 (45 votes cast)

Write a comment

What is the second letter of the word webzm? :