10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to extract all entries containing the following patterns: ccccta & ccccccccc from the following infile:
>P39PT-1224_Freq_900
cccctacgacggcattggtaatggctcccgcaagccatctctcttcagccaagg
>P39PT-784_Freq_2
cccctacgacggcattggtaatggcacccgcaagccatctctcttccccccccc
>P39PT-678_Freq_5... (4 Replies)
Discussion started by: Xterra
4 Replies
2. Shell Programming and Scripting
Bonjour,
I've wrote a script to monitor a logfile in realtime. It is working almost perfeclty except for two things.
The script use the following technique :
tail -fn0 $logfile | \
while read line ; do
... some stuff
done
First one, I'd like a way to end the monitoring script if a... (3 Replies)
Discussion started by: Warluck
3 Replies
3. Shell Programming and Scripting
Hello,
I am trying to extract all words (entries) from a file beginning with 123. For example:
ververv ewfaafa 123asd 4334j fdgfgf
fdfdssd 123890 xxxxx eeee sss 1234 sdfsf were sfs fbdsdfb
fsdg sdgfsd bfg sdfb dsfb
sdfg sdf ergerg 123pop sdfgdfg 123ww 123qq dffg
Desired output:
123asd... (4 Replies)
Discussion started by: palex
4 Replies
4. Shell Programming and Scripting
I am reading through a log file that has multiple entries:
xx-xxxx-xxx-130111090001
<XML>
...
...
</XML>
...
...
...
xx-xxxx-xxx-130111100001
<XML>
...
...
</XML>
There are 2 parts:
1) Take the XML statement and parse out. I have that with a sed script
sed -n '/<XML>/,/XML>/p'... (6 Replies)
Discussion started by: SivaAfi
6 Replies
5. Shell Programming and Scripting
One of the log file looks like entries as below.
Wed Apr 6 14:51:18 2011 FAIL LOGIN: Client "9.191.21.54"
Wed Apr 6 14:52:53 2011 CONNECT: Client "9.191.21.54"
Wed Apr 6 14:52:54 2011 OK LOGIN: Client "9.191.21.54"
Wed Apr 6 14:55:10 2011 CONNECT: Client "9.191.21.54"
Wed Apr 6... (2 Replies)
Discussion started by: rijeshpp
2 Replies
6. Shell Programming and Scripting
You are given a 1 year logfile with each line starting with a date in the form “YYYY-MM-DD”. How would you extract logs from the 4th day of each month and put them into a new file (3 Replies)
Discussion started by: DOkuwa
3 Replies
7. Shell Programming and Scripting
Hi again:
I have this file:
"2010-11-1 11:50:00",40894,13.38,17.24,12.92,13.23,"2010-11-14
11:43:02",12.56,"2010-11-14 11:46:02",22.68,20.95,"2010-11-14
11:44:03",2.144,2.078,190.4,14.27,6.293,"2010-11-14 ... (2 Replies)
Discussion started by: iga3725
2 Replies
8. Shell Programming and Scripting
I've got a log file from automatic diagnostic runs. The log file is appended to each time an automatic log is run.
I'd like to just pull certain lines from each run in the log file, and concatenate them into 1 comma delimited line (for export into excel or an html table).
Each diagnostic run... (3 Replies)
Discussion started by: BecTech
3 Replies
9. Shell Programming and Scripting
hi
iam new of the ksh script.iwant in formation of how to call in logfile in
ksh scripts. if the meaning in ksh.
please help me
thanks
naveen.g (1 Reply)
Discussion started by: naveeng.81
1 Replies
10. Shell Programming and Scripting
Hi experts,
I need help to sort a big logfile.
logfile:
-------
67712 dkjd
jd jj jjjj
------
kjkj
jhjh kkk yggg
lll hhh gffgf jj
--------
i
kkk
kllkkl
-------
Now I want every think between the "------" in one line.
Normaly with paste no problem but you can see that the... (7 Replies)
Discussion started by: joerg
7 Replies