Horje
copy content from one files to another in linux shell script Code Example
copy content from one files to another in linux shell script
#!/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




Shell

Related
build java ant project Code Example build java ant project Code Example
how to install xeyes on ubuntu Code Example how to install xeyes on ubuntu Code Example
awk column decimal to integer Code Example awk column decimal to integer Code Example
python no module named pip Code Example python no module named pip Code Example
cp verbose progress Code Example cp verbose progress Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11