Hi Everyone , have a nice day
given below is a simple linux script
but its first part is not working ( variable k assignment ) , while second loop is working fine
can anyone help me out with this
#!/bin/sh
echo "Enter Date"
read date1
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
do
k = `grep -i success /var/seamless/spool/tdr/ERS_200804$date1$i* | wc -l`
echo $k
done
echo " "
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23
do
grep -i fail /var/seamless/spool/tdr/ERS_200804$date1$i* | wc -l
done
Do you know how to make up the script "cp file1 file2"? If you don't know, do you know of anyone else that could help me? I need a response as soon as possible, I greatly appreciate any help you can give me.