Reputation
18,534
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 32 74
Newest
 Enlightened
Impact
~1.1m people reached

2d
revised How to number a string in each line of a file
edited body
Jul
30
comment How to number a string in each line of a file
@EvgenyVereshchagin You're right. My bad.
Jul
30
comment How to number a string in each line of a file
Actually, this would print an extra line_. Since you just want to add the line number after the first occurrence of an underscore, you can just use perl -ne 's/_/$&$./' input_file > output_file
Jul
15
comment How to Scale down Debian
The links in my previous comment are to tutorials.
Jul
14
comment How to Scale down Debian
I would try the opposite: build a minimalist distro and then grow it as needed. debootstrap and live-build are probably good places to get started.
Jun
12
awarded  Enlightened
Jun
12
awarded  Nice Answer
Jun
2
revised How to detect end of line with sed
deleted 11 characters in body
Jun
2
revised How to detect end of line with sed
added 1 character in body
Jun
2
answered How to detect end of line with sed
Jun
1
comment Printing specific section of a line when a trigger value is present
@Peter.O There is no "auto-printing" in Perl. Perl has two modes for working on a file record-by-record: -n (no printing) and -p (printing); so it's always explicitly specified.
May
11
awarded  Popular Question
May
6
accepted SSH key works on NIS server, fails on NIS client
May
5
comment SSH key works on NIS server, fails on NIS client
@wurtel It was a permissions issue. I had to set the .ssh directory to 0700 permissions (like the other machine where the key was working) and it fixed everything. If you make this into an answer, I will accept it.
May
4
revised How to create the spectrogram of many audio files efficiently with Sox?
added 225 characters in body
May
4
answered How to create the spectrogram of many audio files efficiently with Sox?
May
4
revised SSH key works on NIS server, fails on NIS client
edited title
May
3
asked SSH key works on NIS server, fails on NIS client
May
3
answered To improve this regex about digit separation
Apr
26
awarded  Pundit