Hi, i wrote a simple linux shell script to modify my nokia contacts files and add 050 befor every number in every contact file. it worked fine with all files except filenames that contain space.
for example file name "Mr John Smith.vcf", it show this error:
Quote:
sed: can't read Mr: No such file or directory
sed: can't read John: No such file or directory
sed: can't read Smith.vcf: No such file or directory
mv: target `Smith.vcf' is not a directory
|
Code:
#!/bin/sh
for a in *.vcf
do
sed 's/.*CELL:\([0-9]*\).*/TEL;CELL:050\1/' $a > 1$a |
mv 1$a $a
done
any idea !
sorry for my English