10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
2. Shell Programming and Scripting
I have some files containing the following data
# RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->O O-->H-N N-H-->O O-->H-N TCO KAPPA ALPHA PHI PSI X-CA Y-CA Z-CA
1 196 A M 0 0 230 0, 0.0 2,-0.2 0, 0.0 0, 0.0 0.000 360.0 360.0 360.0 76.4 21.7 -6.8 11.3
2 197 A D + 0 0 175 1,-0.1 2,-0.1 0, 0.0 0, 0.0... (10 Replies)
Discussion started by: edweena
3. Shell Programming and Scripting
I have a text and I want to extract the 4 lines following a keyword!
For example if I have this text and the keyword is AAA
I want the output to be
four (7 Replies)
Discussion started by: stekanius
4. Shell Programming and Scripting
i have two files.
echo "unix linux forums"
now the output i need is
unix linux forums (3 Replies)
Discussion started by: snreddy_gopu
5. UNIX for Dummies Questions & Answers
I need to extract lines between the lines 'RD' and 'QA' from a text file (following). there are more that one of such pattern in the file and I need to extract all of them. however, the number of lines between them is varied in the file. Therefore, I can not just use 'grep -A' command.... (6 Replies)
Discussion started by: johnshembb
6. Shell Programming and Scripting
I have a situation wherein I need to extract two lines from below the search string.
$ grep "$(date +'%a %b %e')" alert.log
Mon Apr 12 03:58:10 2010
Mon Apr 12 12:51:48 2010
Here I would like the display to be something like
Mon Apr 12... (6 Replies)
Discussion started by: geetap
7. Shell Programming and Scripting
I have a text test1.txt file like:Receipt
End (9 Replies)
Discussion started by: TQ3
8. Shell Programming and Scripting
I regularly extract lines of text from files based on the presence of a particular keyword; I place the extracted lines into another text file. This takes about 2 hours to complete using the "sort" command then Kate's find & highlight facility.
I've been reading the forum & googling and can find... (4 Replies)
Discussion started by: DionDeVille
9. Shell Programming and Scripting
I want to extract certain text between two line numbers like
How do I do this with a simple sed or awk command?
---------- Post updated at 06:16 PM ---------- Previous update was at 05:55 PM ----------
sed -n '#1,#2p'... (1 Reply)
Discussion started by: return_user
needa c program to extract text between two delimiters from some text file.
and then storing them in to diffrent variables ?
text file like 0:
aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass... (7 Replies)
Discussion started by: kukretiabhi13