10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have below requirement.
Required O/p in bash
Can you please help.
Please wrap your samples, codes in CODE TAGS as per forum rules. (3 Replies)
Discussion started by: Rtk
2. Shell Programming and Scripting
I have a comma delimited file of major codes and descriptions. I want to replace all occurrences of spaces with underscores up to the first comma (only in the first field), but not replace spaces following the comma. For instance I have the following snippet of the file:
EK ED,Elementary and... (7 Replies)
Discussion started by: tdouty
3. Shell Programming and Scripting
I have a file and i need to replace comma and blank space with comma and 0.
I need the output as
d,0 (4 Replies)
Discussion started by: jaituteja
4. Shell Programming and Scripting
I have a huge file with following records and I want to replace the last comma with ',NULL'. I try using SED but could not create a correct script .
In my opinion I need a script which can convert ,/n with ,NULL/n
2,CHANGE_MEMBER,2012-09-02... (8 Replies)
Discussion started by: Ajaypal
5. Shell Programming and Scripting
The input file is as below
,78H245,C,Ps,ot,ecessary,hat,ame comes first then age and rest AR
I am writting... (8 Replies)
Discussion started by: millan
6. Shell Programming and Scripting
I am trying to search the pattern "ARS (11)" and after the LAST pattern, i am trying to open new line and enter text using sed.
My Existing Text file is Users.txtpaul, Paul Smith, Stevn Smiley, REQ000001, ARS (11)
sam, Sam Martin, Stevn Smiley, REQ000001, ARS (11)
mike, Mike Conway, Stevn... (8 Replies)
Discussion started by: evrurs
7. Shell Programming and Scripting
I have output from a file like this:
I would like to change this to:
Removing newline and change to ","
I now this can be done with tr
cat OUT | tr '\n' ',''
My problem is that tr is not implemented in this shell. sed is, show it should be... (7 Replies)
Discussion started by: Jotne
8. Shell Programming and Scripting
I have a file in the following format
How can i replace the white space in between and replace them with a comma?? The resultant output should be
i tried using
sed -e... (8 Replies)
Discussion started by: mayanksargoch
9. Shell Programming and Scripting
Hi, for some reason I cant seem to figure this out. I have a file which looks something like this
Basically I want this whole thing to be a list with 1 word on each line like this...
word... (1 Reply)
Discussion started by: eltinator
10. Shell Programming and Scripting
maybe i have a file like :
how do write can i replace newline into NA :
make the file inte :
END (3 Replies)
Discussion started by: jeter