Possible Duplicate:
How can I write in nth column of a file in awk?
For example:
abc
xyz
123
546
input.txt:
asdad
asdad
adghf
dfytr
output.txt:
asdad
asdad
adghf
dfytr
abc
xyz
123
546
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Strange strange request. How about you tell us what you want, we are not going to steal your ideas, or maybe we will..
But presuming example text is in a text file how about