Copie um conteúdo de arquivo para outro no Linux
cp -v foo.txt bar.txt
Wassi
cp -v foo.txt bar.txt
cp -r xyz/ ~/Downloads/
#!/bin/sh
cd test1;
echo "list of files:";
ls;
for filename in *;
do echo "file: ${filename}";
echo "reading..."
exec<${filename}
value=0
while read line
do
#value='expr ${value} +1';
echo ${line};
done
echo "read done for ${filename}";
cp ${filename} ../test2;
echo "file ${filename} moved to test2";
done