without using ls, just using echo so purely pattern matching
I can say echo */ <-- lists directories
but how would I match files? surely something like *!/ or * but neither work ?
it seems like there isn't much that I can put in but surely i should be able to put any ascii... (1 Reply)
Hi guys, i have been struggling to achieve the following and therefor looking for some help.
I am trying to write something that will summerize the following output from my switches for daily totals.
Basicly if $1 $2 $3 doesnt change, we can keep adding up $4. Probably would use a awk print end... (3 Replies)
Hi,
I have file 1.txt with following entries as shown:
0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433
**
**
**
In file 2.txt I have the following entries as shown:
0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433... (4 Replies)
Hi all,
I'm looking for some help. I have a file (very long) that is organized like below:
>Cluster 0
0 283nt, >01_FRYJ6ZM12HMXZS... at +/99%
1 279nt, >01_FRYJ6ZM12HN12A... at +/99%
2 281nt, >01_FRYJ6ZM12HM4TS... at +/99%
3 283nt, >01_FRYJ6ZM12HM946... at +/99%
4 279nt,... (4 Replies)
All,
I have the following file:
--------------------------------------
#
# /etc/pam.d/common-password - password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define the services... (2 Replies)
Hi,
I am trying to get a result out of this but fails please help. Have two files /tmp/1 & /tmp/hosts.
/tmp/1
IP=123.456.789.01
WAS_HOSTNAME=abcdefgh.was.tb.dsdc
/tmp/hosts
123.456.789.01
I want this result in /tmp/hosts if hostname is already there dont want duplicate entry.
... (5 Replies)
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
The sample file:
dept1: user1,user2,user3
dept2: user4,user5,user6
dept3: user7,user8,user9
I want to match by '/^dept2.*/' but don't want to have substring 'dept2:' in output. How to compose such regex? (8 Replies)
I need to check the condition of a variable before the script continues and it needs to match a specific pattern such as EPS-03-0 or PDF-02-1.
The first part is a 3 or 4 letter string followed by a hyphen, then a 01,02 or 03 followed by a hyphen then a 0 or a 1.
I know I could check for every... (4 Replies)
Hi all!
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Example:
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
Discussion started by: demmel
8 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::git::gatherdir
Dist::Zilla::Plugin::Git::GatherDir(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::Git::GatherDir(3pm)NAME
Dist::Zilla::Plugin::Git::GatherDir - gather all tracked files in a Git working directory
VERSION
version 1.121820
DESCRIPTION
This is a trivial variant of the GatherDir plugin. It looks in the directory named in the "root" attribute and adds all the Git tracked
files it finds there (as determined by "git ls-files"). If the root begins with a tilde, the tilde is replaced with the current user's
home directory according to File::HomeDir.
Most users just need:
[Git::GatherDir]
...and this will pick up all tracked files from the current directory into the dist. You can use it multiple times, as you can any other
plugin, by providing a plugin name. For example, if you want to include external specification files into a subdir of your dist, you might
write:
[Git::GatherDir]
; this plugin needs no config and gathers most of your files
[Git::GatherDir / SpecFiles]
; this plugin gets all tracked files in the root dir and adds them under ./spec
root = ~/projects/my-project/spec
prefix = spec
ATTRIBUTES
root
This is the directory in which to look for files. If not given, it defaults to the dist root -- generally, the place where your dist.ini
or other configuration file is located.
prefix
This parameter can be set to gather all the files found under a common directory. See the description above for an example.
include_dotfiles
By default, files will not be included if they begin with a dot. This goes both for files and for directories relative to the "root".
In almost all cases, the default value (false) is correct.
follow_symlinks
By default, directories that are symlinks will not be followed. Note on the other hand that in all followed directories, files which are
symlinks are always gathered.
exclude_filename
To exclude certain files from being gathered, use the "exclude_filename" option. This may be used multiple times to specify multiple files
to exclude.
exclude_match
This is just like "exclude_filename" but provides a regular expression pattern. Files matching the pattern are not gathered. This may be
used multiple times to specify multiple patterns to exclude.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-30 Dist::Zilla::Plugin::Git::GatherDir(3pm)