By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,799 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,799 IT Pros & Developers. It's quick & easy.

An alternative to this code?

P: 16
Does anyone know an alternative to this without the use of awk or a tmp file. I'm starting from the basics and awk seems a wee bit too advanced at this early stage. Kind regards.

awk '$0=++c")"$0' file>_tmp&&mv _tmp file

i have a feeling i need to use a loop.
Jan 16 '08 #1
Share this Question
Share on Google+
1 Reply

P: 34
See my reply on your previous post.
Jan 16 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.