Actually, there is a difference between the regex as shown below and
just removing the rogue [
Try it against the file
/debian/d-i/modules/fat-modules
1) This option does *not* add a ? at the end of each line
sed -i 's/^\([^ ?]+\)$/\1 ?/' $i
2) This option (the fixed version of the
Sorry if this gets threaded wrong.
But the SED script, the plus sign doesn't work unless its escaped:
sed -i 's/^\([^ ?]\+\)$/\1 ?/' $i
Enjoy
Evan Greenacre
NSWCDD, K54
540 653 1780
**NOTICE** If you are reading this notice, you are probably a beaucrat with
entirely too much time on your
Tony schreef:
1) This option does *not* add a ? at the end of each line
sed -i 's/^\([^ ?]+\)$/\1 ?/' $i
2) This option (the fixed version of the original) *does* add a question
mark at the end of each line
sed -i 's/^\([^ ?][^ ?]*\)$/\1 ?/' $i
Can you explain what the difference is between
Greenacre, Evan R CIV NSWCDD, K54 schreef:
Sorry if this gets threaded wrong.
But the SED script, the plus sign doesn't work unless its escaped:
sed -i 's/^\([^ ?]\+\)$/\1 ?/' $i
Doesn't that make it a literal plus instead of a regex plus?
___
On Thu, Aug 20, 2009 at 9:27 PM, Sam Geeraertssam...@elmundolibre.be wrote:
Tony schreef:
1) This option does *not* add a ? at the end of each line
sed -i 's/^\([^ ?]+\)$/\1 ?/' $i
2) This option (the fixed version of the original) *does* add a question
mark at the end of each line
sed -i
On Fri, 21 Aug 2009 00:42:56 +0100
Brian Brazil brian.bra...@gmail.com wrote:
On Thu, Aug 20, 2009 at 9:27 PM, Sam
Geeraertssam...@elmundolibre.be wrote:
Tony schreef:
2) This option (the fixed version of the original) *does* add a
question mark at the end of each line
sed -i 's/^\([^