for i in $(ls); do h=`echo $i|cut -d '_' -f1`; echo $h; done
This lists all the files in the current dir, and ehos a part of their name. thsi h can then be used as a directory location
This lists all the files in the current dir, and ehos a part of their name. thsi h can then be used as a directory location
No comments:
Post a Comment