10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a text file containing the following for example:
This number 123456 is in line number one.
Line number two contains -333444 number.
The third line has a 111111 in between and also 435.
Line number four has :444444 in it.
Line five has a in front like a555555.
how can i... (5 Replies)
Discussion started by: james2009
5 Replies
2. Shell Programming and Scripting
I have file in which the data looks like this,
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/
03,test1,41203016,,/
01,0000000,xxxxxxx/
02,xxxxxxxx,yyyyyy/ ... (16 Replies)
Discussion started by: r@v!7*7@
16 Replies
3. Shell Programming and Scripting
I have a file
# cat asasas
AAAAAA
11
22
33
44
BBBBB
NILNILNIL
AAAAAA
22
33
44
55
66
77
88
BBBBB
NILNILNIL (2 Replies)
Discussion started by: anil510
2 Replies
4. Shell Programming and Scripting
I have a log file which looks like this:
<845185415165:STATUS:5/0:0:0:0:0|ghy59DI5zasldf87asdfamas8df9asd903tGUVSQx4GJVSQ==>
I have to extract DATE and number of times the keyword STATUS is shown on each date.
Input is : <1354625655744:STATUS:5/0:0:0:0:0|ghy59DI5ztGUVSQx4GJVSQ==>... (8 Replies)
Discussion started by: maddyrox
8 Replies
5. Shell Programming and Scripting
Hi,
I need a help in replacing the first occurrence of blank line with data.
I used the following command, but its replacing all de occurrences of blank lines in de file. Is there any other method to replace the first occurrence of blank line?
Sed /^$/data
O
Please use code tags! (5 Replies)
Discussion started by: arjun_arippa
5 Replies
6. Shell Programming and Scripting
Hi,
I need to search for a word in a file and need to extract exactly 10th line before and after that search string.
Awaiting your earlier updates. Thanks in advance. (8 Replies)
Discussion started by: Sekar1
8 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have to search and count unique occurence of DE numbers in bold below in a file which has content like below.
Proc Tran F-BUY
Item Tkey Q5JV
Item Tsid JTIZ9
Item Tdat 20091001
Item Tset 20091001
Item Tbkr 5
Item Tshs 2
Item Tprc 897.0
Item Tcom 2000.0
Item Tcm1 20091001... (6 Replies)
Discussion started by: akash028
6 Replies
8. Shell Programming and Scripting
I need to extract the last block of /== START OF SQLPLUS ==/ and /== END OF SQLPLUS ==/. The logifle is written to several times in a day using >> to append. I need a solution using grep/sed.
logfile looks like this
START OF LOGFILE
/== START OF SQLPLUS ==/
ERROR
/== END OF SQLPLUS... (5 Replies)
Discussion started by: hanton
5 Replies
9. Shell Programming and Scripting
Hi All
I have the following contents in a file say in a file name called 'FILE1'
*********** Start of the file **************
SANDIO000456GROJ8900
SANDIO2338923GRJH900
*********** End of the file *******************
I want to cut the first line which has the characters.... (6 Replies)
Discussion started by: dhanamurthy
6 Replies
10. UNIX for Dummies Questions & Answers
How can we find the number of occurence of a specified pattern in a file?
This command would be a part of a shell script. (5 Replies)
Discussion started by: videsh77
5 Replies