Unix and Linux Discussions Tagged with matching |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
67,679 |
Shell Programming and Scripting |
|
|
|
2 |
4,981 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,575 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,666 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,974 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,922 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,463 |
Shell Programming and Scripting |
|
|
|
7 |
2,547 |
Shell Programming and Scripting |
|
|
|
14 |
10,069 |
Shell Programming and Scripting |
|
|
|
5 |
21,662 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
1,959 |
Shell Programming and Scripting |
|
|
|
2 |
1,618 |
Shell Programming and Scripting |
|
|
|
5 |
1,388 |
Shell Programming and Scripting |
|
|
|
4 |
2,788 |
Shell Programming and Scripting |
|
|
|
7 |
9,955 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,991 |
Shell Programming and Scripting |
|
|
|
3 |
7,184 |
Shell Programming and Scripting |
|
|
|
2 |
2,137 |
Shell Programming and Scripting |
|
|
|
10 |
3,694 |
Shell Programming and Scripting |
|
|
|
3 |
4,183 |
Shell Programming and Scripting |
|
|
|
1 |
3,486 |
Shell Programming and Scripting |
|
|
|
2 |
2,033 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,210 |
Shell Programming and Scripting |
|
|
|
3 |
3,436 |
UNIX and Linux Applications |
|
|
|
0 |
1,712 |
UNIX and Linux RSS News |
|
|
|
2 |
1,857 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,104 |
Shell Programming and Scripting |
|
|
|
32 |
13,060 |
Linux |
|
|
|
2 |
1,902 |
Shell Programming and Scripting |
|
|
|
3 |
2,345 |
Shell Programming and Scripting |
|
|
|
7 |
4,537 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
5,365 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,930 |
Shell Programming and Scripting |
|
|
|
2 |
2,208 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
14,786 |
Shell Programming and Scripting |
|
|
|
2 |
4,251 |
Programming |
|
|
|
2 |
3,045 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
6,615 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,289 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,032 |
UNIX for Dummies Questions & Answers |
PTARGREP(1) Perl Programmers Reference Guide PTARGREP(1)
NAME
ptargrep - Apply pattern matching to the contents of files in a tar archive
SYNOPSIS
ptargrep [options] <pattern> <tar file> ...
Options:
--basename|-b ignore directory paths from archive
--ignore-case|-i do case-insensitive pattern matching
--list-only|-l list matching filenames rather than extracting matches
--verbose|-v write debugging message to STDERR
--help|-? detailed help message
DESCRIPTION
This utility allows you to apply pattern matching to the contents of files contained in a tar archive. You might use this to identify all
files in an archive which contain lines matching the specified pattern and either print out the pathnames or extract the files.
The pattern will be used as a Perl regular expression (as opposed to a simple grep regex).
Multiple tar archive filenames can be specified - they will each be processed in turn.
OPTIONS
--basename (alias -b)
When matching files are extracted, ignore the directory path from the archive and write to the current directory using the basename of
the file from the archive. Beware: if two matching files in the archive have the same basename, the second file extracted will
overwrite the first.
--ignore-case (alias -i)
Make pattern matching case-insensitive.
--list-only (alias -l)
Print the pathname of each matching file from the archive to STDOUT. Without this option, the default behaviour is to extract each
matching file.
--verbose (alias -v)
Log debugging info to STDERR.
--help (alias -?)
Display this documentation.
COPYRIGHT
Copyright 2010 Grant McLean <grantm@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2014-09-30 PTARGREP(1)