It has been said that the great scientific disciplines are examples of giants standing on the shoulders of other giants. It has also been said that the software industry is an example of midgets standing on the toes of other midgets.
Thanks for the comment and I am glad that you liked my book! I never thought about including a file to test one-liners on, and it's a great suggestion. I'll make sure to include the files in my next revision of this book and my future books.
Until then, I can share the files that I used to test one-liners on.
The first one contains just 10 lines. I call this file n. I use it to test line spacing, matching lines, numbering lines, text conversion and other tasks.
l 1
l 2
l 3
l 4
l 5
l 6
l 7
l 8
l 9
l 10
Then I have the n2 file that is double-spaced version of n. I use it to test one liners such as 'number only non-blank lines in files' and 'delete all blank lines from a file'.
l 1
l 2
l 3
l 4
l 5
l 6
l 7
l 8
l 9
l 10
Then I have this crazy file called crazy that I used to test most everything else:
line one hello wold
line two foor bar baz
line three esr rms lbt
line four french english spanish
another line
line five c cpp perl
line six energy power work
kakakdfjfgjfhhgfieiuowerwoieroiuqwe
line seven integral matrix set
repeated line
repeated line
repeated line muahaha
repeated line
line eight pen stool lamp
line nine you me him
line ten coffee tee pop last
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Education Sponsors
I am being sponsored by A-Writer! If you ever need help with essay writing, look no further than A-Writer! They will help you with your writing in as quickly as 3 hours!
Thanks for the comment and I am glad that you liked my book! I never thought about including a file to test one-liners on, and it's a great suggestion. I'll make sure to include the files in my next revision of this book and my future books.
Until then, I can share the files that I used to test one-liners on.
The first one contains just 10 lines. I call this file
n. I use it to test line spacing, matching lines, numbering lines, text conversion and other tasks.Then I have the
n2file that is double-spaced version ofn. I use it to test one liners such as 'number only non-blank lines in files' and 'delete all blank lines from a file'.Then I have this crazy file called
crazythat I used to test most everything else:That's about it. :)
Comment Responses
Haha, thanks! You've made learning AWK an easy, but profitable job. Take care.
Reply To This Comment