10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
Discussion started by: jvoot
2. UNIX for Dummies Questions & Answers
My file has a numerous sttrings.I want to retain those strings which start with stt and delete entries with >C
my infile is
>C4603985... (7 Replies)
Discussion started by: sa@@
3. Shell Programming and Scripting
hi, i have a big file like this:
>s31 length=12 numreads=6 gene=isotig454 status=igo
>c2 length =344... (4 Replies)
Discussion started by: the_simpsons
4. Shell Programming and Scripting
Platform : RHEL 5.8
I have text file called myapplication.log . In this file, I have around 800 lines which start with the followng three strings
How can I delete these lines in one go ? (13 Replies)
Discussion started by: omega3
5. Shell Programming and Scripting
Hi guys, I wonder if it's possible to search for a line containing 2 strings and delete that line and perhaps replace the source file with already deleted line(s).
What I mean is something like this:
line1: something 122344 somethin2 24334 45554676
line2: another something... (6 Replies)
Discussion started by: netrom
6. Shell Programming and Scripting
Using awk how to delete chunk of text if it contains certain strings? As in the following, delete a reference chunk, i.e. everything from <reference attribute = "value"> to </reference> inclusive, if within it "Group ID" value is 7 or 96 or 103 or 1005.
<reference attribute = "value">
... (3 Replies)
Discussion started by: pioavi
7. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string2">Version 2.0</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
8. UNIX for Dummies Questions & Answers
should be a very easy questn for you:
I need to delete strings in file1 based on the list of strings in file2.
word1_word2_otherwords..,word3_word5_others... (7 Replies)
Discussion started by: roussine
9. Shell Programming and Scripting
if a String is present in file1.txt, i want to delete that String from file2.txt.
How can i do this??
I am sure that the file1.txt is a subset of file2.txt. (2 Replies)
Discussion started by: jathin12
10. Shell Programming and Scripting
i have 200000bytes size of a unix file i need to delete some text between two strings recursively using a loop with sed or awk . these two strings are : 1st string getting from a file :::2 nd string is fi...its constant . can anyone help me sed -n'/<1 st string >/,/fi/' <input_filename> is the... (2 Replies)
Discussion started by: santosh1234