i have little problem, anyone can help me,
when i run script. the message
here's the script.
find /home/samba/shares/accounting_group -name *.tmp > /root/accounting_tmp3.txt;
for i in `cat /root/accounting_tmp3.txt`;
do rm $i;
done
the error.
rm: cannot remove `/home/samba/shares/accounting_group/OLD': No such file or directory
rm: cannot remove `Hardisk': No such file or directory
rm: cannot remove `2005-2008/Loida/~WRL0699.tmp': No such file or directory
rm: cannot remove `/home/samba/shares/accounting_group/OLD': No such file or directory
rm: cannot remove `Hardisk': No such file or directory
rm: cannot remove `2005-2008/Loida/~WRL0005.tmp': No such file or directory
you need the option -print0 due to spaces in the directory and again the xargs -0 option to be able to work with the spaces when executing the rm command
you need the option -print0 due to spaces in the directory and again the xargs -0 option to be able to work with the spaces when executing the rm command
Recent comments
1 day 17 hours ago
2 days 1 hour ago
2 days 4 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 11 hours ago
3 days 3 hours ago
3 days 4 hours ago