Advertisement
Guest User

Untitled

a guest
Sep 8th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. rmerror@rmerror-desktop:~/Pulpit$ cat test.txt | awk -F ' ' '{if($1 ~ /.*job/){a = $1}else{print a" "$0}}'
  2. //jobname1 table1
  3. //jobname1 table2
  4. //jobname1 table3
  5. //jobname2 table4
  6. //jobname2 table5
  7. //jobname3 table6
  8. //jobname3 table7
  9. //jobname3 table8
  10. //jobname3 table9
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement