I have 2 files with multiple fields. File A is dynamic which has users logged in everyday and their login times and date. File B has the total number of users and their airport codes. File B is a static file. I need to print the File A data along with the airportcodes of the users. I used the below script..
A=`cut -d " " -f1 /data/sampleupdatedreport.csv`
for A
do
grep $A /home/s399682/StarUsers.txt >tmp_today.csv
done
It is not working. Please help me to find a solution for this. Thanks very much in advance!!!