I've the following script
Code:
integer ctr=0
cat files.txt | while read line
do
(( ctr+=1 ))
if [[ ctr -ne 1 ]]
then
cp $(print $line | cut -f2 -d' ') /home/csis/rajus/test
fi
done
[code]
which is supposed to copy filename red from another file
to a directory specified. It is doing it, but still
it gives me a n output mentoning the usage of cp command.
if i send that output to /dev/null it fine. But
how to avoid it in the first place
thanks