Advertisement
dzocesrce

[OS] CocaCola Empolyees

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