Hello,
I would like to make simple string manipulation but since i am new in shell scripting some strange stuff are uncomprehensible to me:
I would like to pick up the name of a file and put it in a variable:
shadok@computer:~$a= folder/fil*.dat
shadok@computer:~$echo $a
folder/filename.dat
shadok@computer:~$echo ${a:7}
fil*.dat
Why when i want to remove the folder name, the expression change ? How can i keep the ENTIRE name "filename.dat" ?
thanks very much ! 