@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> I have some files containing 'one two foo three'. How do I change all of the files to 'one two bar three'? I thought I could use sed, but it outputs to stdout rather than editing the file
<1> sed 's///' file > tmpfile && mv file tmpfile
<1> eh



<1> no
<1> sed 's///' file > tmpfile && mv tmpfile file
<1> Or, if you have GNU sed, you can use sed -i 's///' file
<0> can I work a * in there instead of file? there are multiple files.
<0> bash script the best way?
<0> or is there another program more suitable than sed?
<1> 16:54 goldfish | !faq replace
<1> 16:54 greybot | http://wooledge.org/mywiki/BashFaq#faq21 -- How can I replace a string with another string in all files?



<0> thanks
<1> Pretty neat faq, that is.
<2> hi all
<2> I have a file in which each line begins with a series of spaces and tabs. I want to use sed to, for each line, replace all tab chars with 4 spaces until it hits a non-tab,non-space char. How can I do this in one p*** with sed rather than running a sed command over and over again until all tabs are gone?
<2> pretty tough one?
<1> sed 's/\t/ /g'
<1> maybe
<1> highly unlikely not thoguh


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sed
or
Go to some related logs:

#math
installer yakuake sur slacware
python dynamic attrbutes
+mysql_fetch_field Zero Sized Reply
jessekeys
xmlrpc-c-1.2 portage
+cedega +warcraft 3 how to +minimize
alltray linux wmaker
#perl
#perl



Home  |  disclaimer  |  contact  |  submit quotes