Skip to main content
18 events
when toggle format what by license comment
Jan 10, 2018 at 16:59 answer added Andrew McGlashan timeline score: -1
S Feb 29, 2016 at 1:16 history edited don_crissti CC BY-SA 3.0
deleted 26 characters in body
S Feb 29, 2016 at 1:16 history suggested techraf CC BY-SA 3.0
improved formatting, spelling
Feb 29, 2016 at 1:14 review Suggested edits
S Feb 29, 2016 at 1:16
Feb 27, 2016 at 10:39 comment added ctrl-alt-delor Is it homework?
Feb 27, 2016 at 10:37 comment added ctrl-alt-delor The input has a blank line, the output has a blank line in the same place. All is good.
Feb 27, 2016 at 8:17 comment added humanityANDpeace @cas and since this -is-that-a-forwarded-homework-question said to not use cat -n that would of course not work. maybe the presumable homework was though as a shell programming thing and existing gnu coreutils would make it too easy. maybe even nl is disallowed ;)
Feb 27, 2016 at 7:52 answer added Raja G timeline score: 8
Feb 27, 2016 at 7:47 answer added user79743 timeline score: 3
Feb 27, 2016 at 7:33 comment added fkraiem Use nl then. ;)
Feb 27, 2016 at 7:29 comment added jasonwryan You didn't specify that you want to remove blank lines...
Feb 27, 2016 at 7:26 history edited shawn edward CC BY-SA 3.0
added 25 characters in body
Feb 27, 2016 at 7:26 comment added shawn edward forgot to mention the question said dont use "cat -n"
Feb 27, 2016 at 7:19 answer added Andrew timeline score: 3
Feb 27, 2016 at 7:17 comment added cas what's wrong with cat -n?
Feb 27, 2016 at 7:15 comment added shawn edward yeah but one line is just blank
Feb 27, 2016 at 7:08 comment added jasonwryan You don't need the loop, Awk can handle this: awk '{print NR, $0}' file...
Feb 27, 2016 at 7:04 history asked shawn edward CC BY-SA 3.0