Quote:
Originally Posted by senthil_is
I have file with 70 lines.
I want to add 'SLV' at the starting of the line if the line has first character as 0 or 1 or 2 or ..9
Nothing else has to be changed in the file. Please anyone advice.
|
=======================================================
#!/usr/bin/ksh
ls -l |grep .txt|nawk '{print $9}' > list
while read FILE
do
perl -pi -e 's/01/09\/SWV/g' $FILE
done <list