right now i am using this way but i am getting only the 3 rows which replaces the space to + but then why i am not getting the existing negative rows in the file.dat file
I want the result with all the rows in the file.
Quote:
Originally Posted by research3
run sed command
---------- Post updated at 08:50 AM ---------- Previous update was at 08:49 AM ----------
output:
Last edited by Franklin52; 10-23-2009 at 02:37 PM..
Reason: Please use code tags!!
in my example
the sed command will be replaced all blank characters in all of the rows not only in 3 rows!!
The negative lines will not changed in this case.
Therefore I'm not undertand your issue, the result is the same or I'm wrong?
Greetings. I have a three column file, and there are some numbers in the second column that are <1. However I need all numbers to be positive, thus need to replace all those numbers with just one. I feel like there must be a simple way to use awk to find these numbers and sed to replace but can't... (5 Replies)
Hi All,
My Input is:
111.121 23212121
121.231 12678878
My output should be
111.12123212121
121.23112678878
in each row i need to replace that perticular space with empty.
8th position in the file for all rows.
Please help me in this case ..
Thanks (7 Replies)
Hi,
I need torename filenames with %20 to space in a batch wise.Can anyone help me please. Need it badly
Eg.
English%20Brochure%20002-1
to be replace to
English Brochure 002-1
Thanks a lot
Please use and tags when posting code, data or logs etc. to preserve formatting... (8 Replies)
hi,
d o g e v o l
i want a perl command for the above string which should change to the below
dog evol
replace one space with nothing and two spaces with one space.
Thanks,
Amey (3 Replies)
Hai masters,
If a file contains content of 2000 lines,
from which i need to remove the first n characters or first n spaces from each line of the file.
If suppose to remove n characters or first n spaces from a single line means, just use the command nx.
But from the above scenario,... (9 Replies)
Hi
I need to know how I change the spaces by _ in folders and filder founded by find
ex.
find . -name "* *" -exec echo {} \;
./test space
./test space/new file.txt
./test space/new file
./test space/untitled folder
./test space/untitled folder/new fileruben
./Backup/backup/Image... (6 Replies)
i have a file named as templist which looks like this:
i want to translate spaces to a new line so that the file would look like this
im using sed with this sed -e 's/" "/\n/' templist > templist.out but it doesn't work. can someone please help me. (2 Replies)