1/16 What is a easy one line, low typing way to replace all the 't's in
a file FileName with 'd's on a unix box with the standard utilities?
\_ man sed
\_ s/t/d/g
\_ man tr
\_ tr t d
\_ M-x replace-string in Emacs.
\_ :.,$s/t/d/g in vi.
\_ esc-r t <c/r> d <c/r> in jove.
\_ /usr/bin/perl
\_ perl -pi -e 's/t/d/g' FileName --dbushong
\_ why use a pagota when you could use a chopstick?
\_ Because a pagoda is what was requested.
\_ In ed ..
1,$s/t/d/g
\_ In Unix Wordpad
Alt-E,E,t,TAB,d,Alt-A
\_ cat /dev/random > FileName
\_ thanks smartass.
And the award goes to dbushong who is the only one who answered the
question correctly. Though thanks to all who played it is good
info. (seriously and except the last guy). |