Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #get todayz day and first 3 characters of todayz month
- today_day=`date | awk 'print $2'`
- today_month=`date | awk 'print $3' | head -c3`
- touch employees.txt
- #list info (first name,second name,city,country) for every CocaCola employee that got their job on this day
- echo "`cat CocaCola.txt | grep "$today_month $today_day" | awk '{print $1,$2,$6,$7}'`" >> employees.txt
- #print the info mentioned above on screen
- cat employees.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement