hi..
i want to change the file contents in a folder recursevely to HELLO..
Please help..
i know that to display the files under a folder
find . -print
prints all the contents including folders which is not needed..
please help
hi..
i want to change the file contents in a folder recursevely to HELLO..
Please help..
i know that to display the files under a folder
find . -print
prints all the contents including folders which is not needed..
please help
for i in `find . -type file -print`
do
echo "HELLO" > $i
done
if i am not wrong you want to overwrite all files recursively with word "HELLO".