Dear all ,
I have a file whose content has the following format:
jboss.web:type=ThreadPool,name=AAAA
jboss.web:type=ThreadPool,name=BBBB
How can I parse this file to get the value of the name of each line (AAAA , BBBB) and store the result to an array ? (array = AAAA , array = BBBB).... (4 Replies)
Hello friends,
I am writing a simple shell script which will copy one particular type of files to backup folder if files exists. If files doesn't exists, mv command should not be executed.
My file pattern is like wcm-spider-maestro.log.2009-07-15, wcm-spider-maestro.log.2009-07-16 etc..
I... (6 Replies)
Hi,
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
So, I know how to do some of this stuff on an individual level, but I'm drawing a blank as to how to put it all together.
I have a pattern that I'm looking for in a log file. The log file I know came in yesterday, so I want to limit the search to that day's listing of files. How would I do... (5 Replies)
Hi,
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Thanks,
Jean (9 Replies)
Hello,
I have few lines to be inserted in file_lines_to_insert.
In another file final_file, I have to add lines from above file file_lines_to_insert before a particular pattern.
e.g.
$ cat file_lines_to_insert => contents are
abc
def
lkj
In another file final_file, before a... (6 Replies)
Hi ! All
I just want to search and write to new file if pattern is found in text file
following are my text files by which I want to search Month and last column number
my text file1
15-Jan-2011 25 ARTS 1255 125 125 178 198
15-Jan-2011 25 ARTS 1255 125 125 178 198
15-Jan-2011 25... (3 Replies)
Hello everyone,
I want to search for a specific pattern in the entire codebase that exists.
Pattern:
I need to find wherever there is a harcoded value "Vxxxx" and "GCxxxx" exists in the perl scripts and shell scripts. (where xxxx will be always number)
I need the script name and the value... (1 Reply)
hi,
i have a variable which contains some file names delimited by a single space.
FNAME="s1.txt s2.lst s3.cvs s4.lst"
i have another variable that contains a pattern
FILE_PATTERN="*.lst"
i want to take the filenames from FNAME variable and assign each file name in to an array say
for... (8 Replies)
he below looks in $dir for any pattern of fileone. As is, it executes but only returns File found if the exact format in the script exsists. Why isn't a pattern of fileone being looked for and if it is in $dir, File found. I think that is what should happen. Thank you :).
dir=/path/to
if... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
dirvish-locate
DIRVISH-LOCATE(1) General Commands Manual DIRVISH-LOCATE(1)NAME
dirvish-locate - locate file versions in dirvish images
SYNOPSIS
dirvish-locate vault[:branch] pattern
DESCRIPTION
Locate versions of files in a dirvish vault
The index of each image specified vault is searched for paths matching pattern. Each path found matching the pattern will be reported fol-
lowed by a modification time of each version of the file and all images having a link to it.
The optional branch specification will restrict searching to the specified branch.
Images with an error status will be skipped as will any without index files. The index file may be compressed by gzip or bzip2. See tree
and index in dirvish.conf(5) for details.
The pattern is a perl regular expression to match the final component of the path. Append .* to the end of the pattern if you wish to
match any substring of the whole path or $ if you wish to anchor the pattern to the end of the path. See perlre(1) for details.
Directories are excluded from matching as they would wind up matching every file within them anyway. Symlinks are also excluded from
matching.
If the pattern matches too many paths dirvish-locate will only report the paths matched and not versions. As a sanity check if the number
of matches is really excessive dirvish-locate will limit the number of images searched. Excessive matches is an indication of an insuffi-
ciently specific pattern. Use the resulting path list to compose a more specific one.
EXIT CODES
To facilitate further automation and integration of dirvish-locate with other tools dirvish-locate provides rationalised exit codes. The
exit codes are range based. While the code for a specific error may change from one version to another it will remain within the specified
range. So don't test for specific exit codes but instead test for a range of values. To the degree possible higher value ranges indicate
more severe errors.
0 success 200-219 An error was encountered in loading a configuration file.
220-254
An error was detected in the configuration.
255 Incorrect usage.
FILES
/etc/dirvish/master.conf
alternate master configuration file.
/etc/dirvish.conf
master configuration file.
bank/vault/image/summary
image creation summary.
bank/vault/image/index
bank/vault/image/index.gz
bank/vault/image/index.bz2
dirvish index file.
SEE ALSO dirvish.conf(5)BUGS DIRVISH-LOCATE(1)