Hi Experts,
After the great suggestions I received yesterday, i'm back again, asking for more :D.
I have close to 8-10 lines of code performing an operation, id like to know, if there is a more compact way to do this.
# Removes the first line which is a message
awk 'match($0,"The following message") == 0 {print $0}' results_Linux.out > tmp
mv tmp results_Linux.out
# Removes the empty lines in the file
cat results_Linux.out | awk '$0!~/^$/ {print $0}' > tmp
mv tmp results_Linux.out
# Removes the last part of each line and adds a URL to the end
sed -e 's|WAITING (Being queued on farm)|http://dte/dte30/faces/monitorPage/jobId=|' results_Linux.out > tmp
mv tmp results_Linux.out
# Adds the first word of each line to the end of the line as well
awk '{print $0$1}' results_Linux.out > tmp
mv tmp results_Linux.out
# Send a mail to the user
userID=`whoami`
datetime=`date`
cat results_Linux.out | mail -s "Linux Run Results for - [$userID] executed on - [$datetime]" $EMAIL