10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to extract a table of data (mysql query output) from a log file. I need to print everything below the header and not past the end of the table. I have spent many hours searching with little progress. I am matching the regexp +-\{99\} with no problem. I just can't figure out how to print... (5 Replies)
Discussion started by: godfreydanials
5 Replies
2. AIX
HI All,
I am using grep command to serach a pattern in a list of files and storing the output in a variable. Then i am applying some logic on that variable to get the required output.
But Thing is that when the pattern is present mutiple times in a file, i am getting the output of grep in a... (3 Replies)
Discussion started by: goutam sahoo
3 Replies
3. Shell Programming and Scripting
I am trying to print those line which has no # in the begining of the line.
The sed I used for this purpose as shown below is not giving the required output.
echo 'PDE 5600' | sed -n 's/^\!#/&/p'
Where lies the problem:confused: (3 Replies)
Discussion started by: hiten.r.chauhan
3 Replies
4. UNIX for Dummies Questions & Answers
I have a very large results file, and a list of filters
grep -wf filterlist.txt datafile.txt > outfile.txt
The above line works but is very slow and I'm wondering how to make it faster.
The items in my filterlist are only relevant to the first column. I don't care if any item in the... (1 Reply)
Discussion started by: sayb
1 Replies
5. Shell Programming and Scripting
input
output
a1 100 200 XYZ_X
a1 98 188 ABC (2 Replies)
Discussion started by: quincyjones
2 Replies
6. Shell Programming and Scripting
Hi all,
This should be very easy but I can't figure it out...
I have a file that looks like this:
@SRR057408.1 FW8Y5CK02R652T length=34
AGCAGTGGTATCAACGCAGAGTAAGCAGTGGTAT
+SRR057408.1 FW8Y5CK02R652T length=34
FIIHFF6666?=:88@@@BBD:::?@ABBAAA>8
@SRR057408.2 FW8Y5CK02TBMHV length=52... (1 Reply)
Discussion started by: kmkocot
1 Replies
7. Solaris
Hi guys.
I need a sed command to print like 10 lines after a regular expression is found in the log.
Can anyone help me out.
Thanks
---------- Post updated at 10:52 AM ---------- Previous update was at 10:34 AM ----------
never mind.
I just did the search bewteen two expressions. (1 Reply)
Discussion started by: jamie_collins
1 Replies
8. Shell Programming and Scripting
Hello!
Im trying to read file contents. Then, print out every line that has "/bens/here" in the file that was read.
cat /my/file.now | sed '/bens/here/p'
I keep getting the error asking if I need to predeclare sed?
What does predeclaring sed mean?
Thanks!
Ben (2 Replies)
Discussion started by: bigben1220
2 Replies
9. Shell Programming and Scripting
HiCan someone show me how to print all lines from a file after a line matching a pattern using sed?Thanks (13 Replies)
Discussion started by: steadyonabix
13 Replies
10. Shell Programming and Scripting
I need to print specific lines from a file, say 2-5, 8, 12-15, 17, 19, 21-27. How do I achieve this? (2 Replies)
Discussion started by: Ilja
2 Replies