Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rmerror@rmerror-desktop:~/Pulpit$ cat test.txt | awk -F ' ' '{if($1 ~ /.*job/){a = $1}else{print a" "$0}}'
- //jobname1 table1
- //jobname1 table2
- //jobname1 table3
- //jobname2 table4
- //jobname2 table5
- //jobname3 table6
- //jobname3 table7
- //jobname3 table8
- //jobname3 table9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement