Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat
- ball 1
- ball 2
- cat_1
- ball 3
- ball 4
- cat_2
- ball 5
- cat ball 1
- cat ball 2
- cat_1 ball 3
- cat_1 ball 4
- cat_2 ball 5
- cat_2 ball 6
- kent$ awk 'NR%3==1{cmd=$0;next}{print cmd,$0}' file
- cat ball 1
- cat ball 2
- cat_1 ball 3
- cat_1 ball 4
- cat_2 ball 5
- cat_2 ball 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement