10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am facing an issue while cutting fields with comma delimiter. There are many records with Double quotes in between.
My data: aaa,bbb,"ccc, ddd",eee,fff,"ggg ,hhh",iii
When i use cut command with comma delimiter, i am getting wrong data like
field1=aaa
field2=bbb
field3="ccc... (3 Replies)
Discussion started by: krishna_gnv
3 Replies
2. Shell Programming and Scripting
Need help to append a pipe at end of the line immediately after the cut command,
I have an Input flat file with 16 feilds and I am removing the 16th feild by using the cut command as shown,
Input:
354|||||CORPORTATION||||NENE PARADE|||WISBECH|CAMBRIDGESHIRE|PE13 3BY|100001|
I... (5 Replies)
Discussion started by: Aditya_001
5 Replies
3. Shell Programming and Scripting
I am writing a shell script to skip couple of feilds in a flat file and as a part of this I have written the below piece of code in it.
cut -d '|' -f 1-17,19-31 $1 > filename
To add pipe at end of the line I used below command, but it adds even to header and footer as well which i... (11 Replies)
Discussion started by: Aditya_001
11 Replies
4. Shell Programming and Scripting
I am trying to grep the oracle erros evry day from the logs file. My problem is :
-rw-r----- 1 tibcolm tibco 17438361 Apr 5 11:59 RetryService-RetryService.log
-rw-r----- 1 tibcolm tibco 245303 Apr 5 12:00 ResponseService-ResponseService.log
-rw-r----- 1 tibcolm tibco 2122654 Apr 5 12:00... (4 Replies)
Discussion started by: neeraj617
4 Replies
5. Shell Programming and Scripting
Hi All,
I need to extract text 'ULTIMATE and 4spaces after it' from below line
77"2686"2010-11-21 14:09:13.000"4"I"200"1"2010-11-21 14:09:14.000"001:S087110131 ULTIMATE 4.99 T""
I have used cut command :
a=`echo $line | cut -f9 -d '"' | cut -c20-31`
echo $a
But... (5 Replies)
Discussion started by: angie1234
5 Replies
6. Shell Programming and Scripting
Hi I have some problem to cut out the second line in a output file and send to a new file it's a #!/bin/bash script
1 something
2 something
3 something
and after I cut
1 something
3 something
New file
2 something
Thanks in advance (7 Replies)
Discussion started by: pelle
7 Replies
7. Shell Programming and Scripting
Hi All,
I would like help with a script which can get rid of the first work of all lines in text file.
File 1
The name is Scott.
Output : name is Scott
---------- Post updated at 02:38 PM ---------- Previous update was at 02:37 PM ----------
Hi ALL
There is typo error in... (3 Replies)
Discussion started by: bubbly
3 Replies
8. Shell Programming and Scripting
First I have to say thank you to this community and this forum. You helped me very much builing several useful scripts.
Now, I can't get a solution the following problem, I'm stuck somehow. Maybe someone has an idea.
In short, I dump a site via lynx and pipe the output in a file. I need to... (7 Replies)
Discussion started by: lowmaster
7 Replies
9. Shell Programming and Scripting
Hi,
I have text file which contains lines like :
a/a/a/a/.project
b/b/b/b/b/.project
c/c/c/.project
d/.project
e/e/e/e/.project
i want for all lines the last word .project should be removed and the file should look like :
a/a/a/a/
b/b/b/b/b/
c/c/c/
....
how to proceed... (7 Replies)
Discussion started by: bhaskar_m
7 Replies
10. Shell Programming and Scripting
Let's say I have a line like that:
I want to cut out numbers between two $ including $s. The result should be like that:
I am so-newbei. I am non-stop reading about SED since yesterday and not a programmer. I know that it is a short period, thus maybe I had overlooked something. I... (4 Replies)
Discussion started by: l_p
4 Replies