31,174 reputation
33888
bio website
location Beta Orionis
age
visits member for 2 years
seen 4 hours ago

Gentleman programmer and linux enthusiast.

"You are lost in the Real." -- Baudrillard **

** o_O?

http://cognitivedissonance.ca/cogware/


6h
comment multiline editing using perl or any other tool
...Added my output for John's input to illustrate what I mean.
6h
revised multiline editing using perl or any other tool
added 826 characters in body
6h
comment multiline editing using perl or any other tool
@mikeserv It is just an opinion, I just can't be bothered prefacing everything with "IMO", especially when it is the correct opinion anyway ;) (I think) the significant difference here is the way multi-line comments get handled; in yours # comment 3 gets appended whereas this will not do that on purpose, but that requires a more complex state machine. For me it is very quick to do this kind of thing and easy to tweak to accommodate unforeseen requirements because it is lower level than one big regexp.
14h
comment multiline editing using perl or any other tool
+1 I know this is not in the spec, but curious as to what this will do with multi-line comments.
14h
answered multiline editing using perl or any other tool
16h
comment multiline editing using perl or any other tool
It's probably much simpler if you just do this with a script (reading from stdin, writing to stdout) than try and cobble something with perl -e ... (which does not save any time unless you are sure about what you are doing). You should also explain the nature of the change more generically, if appropriate, since changing exactly those lines is different than changing lines which meet a certain criteria.
19h
answered copy symlinks with rsync
1d
answered How to compile manual files .1
1d
comment Switch to TWM in Fedora 20
They're only loaded if you use them.
1d
revised Switch to TWM in Fedora 20
added 41 characters in body
1d
answered Switch to TWM in Fedora 20
1d
answered How can I encrypt a file?
1d
comment Why “backporting process does not consider upstream releases”?
"By 'upstream releases', does it mean the raw (not for a particular Ubuntu release) source code release from the original author of the package?" -> Yes, or a patched version descended from it; the furthest upstream you can get is the original source.
1d
comment How can a Bash script tell how it was run?
Aescula, I've added an idea to the bottom if your problem is specifically to do with invoking via point and click in a GUI. @Gilles Thanks for the comments, I've added a further caveat about that section of the "Advanced Guide".
1d
revised How can a Bash script tell how it was run?
added 691 characters in body
2d
comment How can a Bash script tell how it was run?
@DanielAmaya The Q is tagged bash. Pragmatically, yours is perhaps the better test (+1) but not perfect; I wanted to post this because there is something canonical about it (considering the specifics of the question) and its use value for people who may find their way here.
2d
comment How can a Bash script tell how it was run?
@JonathanLeffler Thx -- replaced with double squares.
2d
revised How can a Bash script tell how it was run?
added 2 characters in body
2d
revised How can a Bash script tell how it was run?
added 1 character in body
2d
awarded  Yearling