I need to calculate the md5sum of one string per line in my ls dump:
directory_listing.txt:
./r/g4/f1.JPG
./r/g4/f2.JPG
./r/g4/f3.JPG
./r/g4/f4.JPG
However the md5sum should be calculated without the 'first dot'. I've written a simple script so far:
while read line
do
echo $line | exec 'md5sum'
done
./g.sh < directory_listing.txt
How can I remove the first dot from each line?
execisn't doing anything useful here -- just useecho "${line#./}" | md5sum. – Gordon Davisson Jul 6 '11 at 14:36