101 reputation
1
bio website itguy.ro
location Romania
age 37
visits member for 1 year, 7 months
seen 2 hours ago

Aug
10
awarded  Supporter
Aug
10
comment how to delete line numbers in a code block?
@AlaaAli, hopefully anyone using this site would have the brains to understand the example and chose the correct number of chars to cut of. Anyway, instead of trying to BS me, you might try to improve your answer.
Aug
10
comment how to delete line numbers in a code block?
@AlaaAli, let's be frank, you didn't post any solution, after 5 edits they are still barely functional. AWK was not designed for this kind of work and has no place here, sed has a in-place editing flag (-i), you should use character classes in the regexp, cut can cut based on chars positions so the entire sed|cut stuff can be written as cut -c5- <file >newfile. The list can go on.
Aug
10
comment how to delete line numbers in a code block?
line numbers are right justified, they may have some spaces before - all your "solutions" are wrong for the file given as a example