The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2012-09-23
, 21:46
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#32
|
Well, after just finishing a well constructed sed command
$(echo $name | sed "s/(operator.)/( `echo $oper | sed 's/\(&\)/\\\&/'` )/")
for replacing some chars, I thought s/re/replace/ would be enough? It is for sed.
But ed (and vi) take s/re/replace/ to just replace in that specific line!?
And s/re/replace/g replaces globally (all text lines)?
The Following 3 Users Say Thank You to Copernicus For This Useful Post: | ||
|
2014-02-04
, 18:21
|
Posts: 391 |
Thanked: 908 times |
Joined on Aug 2011
@ suncity
|
#33
|
And right you are!
It is the backup of the first sector of the partition, which should be copied with dd on low level.
I edited the above post.
|
2014-12-27
, 10:40
|
Posts: 1,994 |
Thanked: 3,342 times |
Joined on Jun 2010
@ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
|
#34
|
I think maybe you should use /usr/sbin/mmc-mount instead of mount, that way it applies all of the proper mounting options.
|
2014-12-30
, 05:02
|
Posts: 1,994 |
Thanked: 3,342 times |
Joined on Jun 2010
@ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
|
#35
|
The Following User Says Thank You to Wikiwide For This Useful Post: | ||
$(echo $name | sed "s/(operator.)/( `echo $oper | sed 's/\(&\)/\\\&/'` )/")
for replacing some chars, I thought s/re/replace/ would be enough? It is for sed.
But ed (and vi) take s/re/replace/ to just replace in that specific line!?
And s/re/replace/g replaces globally (all text lines)?