03-07-2008 10:56 PM
This is the string what i have which is continous.
now which command i need to use to get the string as below.
03-07-2008 11:06 PM
of course, i was assuming that you are using the vi editor.
You can also do the same from the command line.
cat oldfile | sed s/\/dev/ \/dev/g> newfile
hope this helps too!
03-08-2008 10:05 AM
Where did that string come from, where is it going?
What is the 'real' problem you are trying to solve.
Rather then fixing after the fact exploiting
assumed characteritics which may or might not change, why not solve the core problem and make sure clean data is delivered in the first place?!
For example, witness the following (contrived) example:
$ perl -e 'print join q( ),@ARGV' /dev/*/c0t0d0
$ perl -le 'print @ARGV' /dev/*/c0t0d0
$ perl -le 'print join q( ),@ARGV' /dev/*/c0t0d0
Hope this helps,