My data is xml'ish (here is an excerpt) :-
<bag name="mybag1" version="1.0"/>
<contents id="coins"/>
<bag name="mybag2" version="1.1"/>
<contents id="clothes"/>
<contents id="shoes"/>
<bag name="mybag3" version="1.6"/>
I want to delete line containing mybag2 and its subsequent... (5 Replies)
Hi!
From a file like this one :
hello
...
PATTERN1
...
lines between patterns
..
PATTERN2
...
I would like to extract only the lines between patterns, probably with awk I think?
Thanks a lot for your help,
Tipi (5 Replies)
Hi,
From the sample file below
Conditions
1) Pattern Range must start with "ALTER TABLE"
2) Pattern Range ends when it finds ";"
3) Between this range i want to select all the patterns that contain pattern " MOVE "
Note : I would like to exclude the above pattern matches and print... (1 Reply)
Hi,
Here is a sample of my Test File
$ cat TestFile1
Prompt Table DQZ_ALTER_SCHEMA_ID;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID MONITORING;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID STORAGE ( NEXT 3464K );
Prompt Table DQZ_ALTER_SCHEMA_ID;
ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID
MOVE LOB... (16 Replies)
Hi,
I have a file like below:
.
.
.
.
Jack is going home
Jack is going to school
Jack is sleeping
Jack is eating dinner
John is going home
John is eating breakfast
.
.
.
The specific line is:
Jack is going home (2 Replies)
Hi folks,
I have a file which contains several occurences of 2 different patterns. I need to find out the line of first occurence of pattern2 starting after the position of first occurence of pattern1.
example file:
aaaa
pattern2
bbbb
pattern1
ccc
pattern2
ddd
pattern1
eee
pattern2... (9 Replies)
Hi all!
How can I delete all the text starting from <string1> to <string2> in all the .txt files of the folder "FOLDER" ?
Thanks a lot!
mjomba
...
</s>
<s>
<w></w>
</s>
<s>
...
to get: (1 Reply)
Hello, I'm looking for sed solution to change
...
<li>keyword</li>
<li>keyword
<li>keyword</li>
<li>keyword
<li>keyword</li>
...
to
...
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
<li>keyword</li>
...
I.e., if lines beginning with <li> do not end with... (3 Replies)
I have the below 2 files:
1) Third field from file1.txt should be compared to the first field of lookup.txt.
2) If match found then third field, file1.txt should be substituted with the second field from lookup.txt.
3)Else just print the line from file1.txt.
File1.txt:... (4 Replies)
Version: RHEL 6.5
In the below text file, I want to find the lines which has the string JOHN , KATE and STEVE in it.
The logic is to grep with an AND condition ie. get all lines with JOHN AND KATE AND STEVE
$ cat sometext.txt
PHILIP worked in HR
JOHN along with KATE fixed several IT... (4 Replies)
Discussion started by: John K
4 Replies
LEARN ABOUT DEBIAN
taggrepper
TAGGREPPER(1) User Commands TAGGREPPER(1)NAME
taggrepper - search and match tags of media file for regular expressions
SYNOPSIS
taggrepper [--tag-label regexp]... [--display-taglabel]... [FILE/DIRECTORY]...
DESCRIPTION
Perform a regular expression search on the tags of specified media files.
Mandatory arguments to long options are mandatory for short options too. All regular expressions are Perl Compatible Regular expressions
supported by the PCRE libraries. Note that all matches are ANDed, meaning that for a successful match, matches against all tags must occur.
Support exists for MP3 files, and, if compiled in, for Ogg Vorbis and FLAC files as well.
-t, --title=REGEXP
Match the title tag against REGEXP
-a, --artist=REGEXP
Match the artist tag against REGEXP
-l, --album=REGEXP
Match the album, tag against REGEXP
-y, --year=REGEXP
Match the year tag against REGEXP
-g, --genre=REGEXP
Match the genre tag against REGEXP
-c, --comment=REGEXP
Match the comment tag against REGEXP
--track=REGEXP
Match the track tag against REGEXP
-c, --composer=REGEXP
Match the composer tag against REGEXP
-o, --orig-artist=REGEXP
Match the original artist tag against REGEXP
-c, --copyright=REGEXP
Match the copyright tag against REGEXP
-u, --url=REGEXP
Match the URL tag against REGEXP
-e, --encoded-by=REGEXP
Match the encoded-by tag against REGEXP
--any-tag=REGEXP
Match the encoded-by tag against REGEXP. Using this option makes every one of the above options to be ignored
--display-title
display title tag of matching files
--display-artist
display artist tag of matching files
--display-album
display album tag of matching files
--display-year
display year tag of matching files
--display-genre
display genre tag of matching files
--display-comment
display comment tag of matching files
--display-track
display track tag of matching files
--display-composer
display composer tag of matching files
--display-orig-artist
display orig-artist tag of matching files
--display-copyright
display copyright tag of matching files
--display-url
display url tag of matching files
--display-encoded-by
display encoded-by tag of matching files
-0, --print0,
Use null character as delimiter. This option can be used with -0 option of xargs.
-r, --recursive
Search directories recursively
-v, --version
Display version and exit
-h, --help
Display this help message
All regular expressions are PCRE regular expressions. Refer to the PCRE documentation for details. Report comments and bugs to
a.kumar@alumni.iitm.ac.in
COPYING
Copyright (C) Kumar Appaiah
License: BSD License (see COPYING file in the distribution tarball for details)
This program is free software; you can distribute it under the terms of the BSD License. See the file COPYING in the tarball, or
/usr/share/common-licenses/BSD on Debian-based systems.
SEE ALSO pcre(3)taggrepper 0.01 July 2009 TAGGREPPER(1)