Guest User

Untitled

a guest
Nov 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 21356 suresh 12/12/2012
  2. 23511 ramesh 11/06/2011
  3. 31456 biswajit 09/08/2013
  4. 53134 archan 06/02/2009
  5.  
  6. ramesh
  7. archan
  8.  
  9. 21356 suresh 12/12/2012
  10. 23511 ramesh_terminated 11/06/2011
  11. 31456 biswajit 09/08/2013
  12. 53134 archan_terminated 06/02/2009
  13.  
  14. $ awk 'FNR==NR{a[$1];next} ($2 in a){$2=$2"_terminated"}1' hr.txt empt.txt
  15. 21356 suresh 12/12/2012
  16. 23511 ramesh_terminated 11/06/2011
  17. 31456 biswajit 09/08/2013
  18. 53134 archan_terminated 06/02/2009
Add Comment
Please, Sign In to add comment