Sign in
Google apps
Main menu
Post a Comment On:
j4neiros
"AWK: convert lines in a file to columns"
No comments yet. -
1 – 0 of 0
#!/bin/bash
awk '
/Name:/, /Zip:/ { printf "%s ", $0 }
/Zip:/ { print "" }
' <<EOT
Name: John Doe
Age: 32
Zip: 60324
Name: Jane Doe
Age: 34
Zip: 54930
Name: Skippy
Age:134
Zip:23456
EOT
posted by J. Ernesto Aneiros at
11:24 AM
on Feb 8, 2012
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"AWK: convert lines in a file to columns"
No comments yet. -