Thanks Akshay for pointing it out, I was trying first someting else with match before and later used gsub while posting I forgot to remove match from it. It can be as follows too.
On OS 10.4.11
I have filenames like:
670711 SA T2 v1-1_DS_EF.doc
CT_670520 AM T1 v1-2_DS_EF.doc
CT_670716 - 2 SA T4 v1-2_DS_EF.doc
CT_670713 SA T3 v1-1_DS_EF.doc
670421 PA DYP1 v1-1_DS_EF.doc
CT_670425 PA DYP2 v1-1_DS_EF.doc
CT_670107 RA T3 v1-2_DS_EF.doc
CT_670521 AM T2 v1-2_DS_EF.doc... (3 Replies)
I have a shell script that uses wget to grab a bunch of html from a url.
URL_DATA=`wget -qO - "$URL1"`
I now have a string $URL_DATA that I need to pull a substring out of..say I had the following in my string
<p><a href="/scooby/929011567.html">Dog pictures check them out! -</a><font... (3 Replies)
i have srtring i.e. "NAME,CLASS,AGE" (length of string is not constant) and from this string i've extract each word delimited by "," (comma).
INPUT: "NAME,CLASS,AGE"
OUTPUT: NAME
CLASS
AGE
how can i do that?
i have tried some string manipulation function like... (5 Replies)
Hi,
Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable?
for eg: suppose the PATH is being set as follows
PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4
... (2 Replies)
Hi,
I have an input string say for example:
ABC,DEF,IJK,LMN,...,XYZ
The above string is comma delimited. Now I have to extract the last part after the comma i.e. XYZ.
:b: (3 Replies)
We have 10 jobs entry in crontab like this
0 7 * * 0 && (source /x/y/z .bashrc ; /x/y/z /test.sh Table1 /ABC/TEST >x/y/z/log
(every job have different o/p Path)
can any one help me to filter only the output PATH /ABC/TEST from the file dup_cron. (1 Reply)
Hello,
A question please.
A have a file that contains a string. Ex:
AAAABBCCCCCDDEEEEEEEEEEFF
I'd want to recover 2 substrings, 'BB' and 'FF' and then leave them in a new file.
From position 5, 2 caracters (ex:"BB") and from position 25, 2 caracters (ex:"FF") in a file.
Could anoyone help me... (3 Replies)
In the awk below I am trying to set/update the value of $14 in file2 in
bold, using the matching NM_ in $12 or $9 in file2
with the NM_ in $2 of file1.
The lengths of $9 and $12 can be variable but what is consistent is the start pattern
will always be NM_ and the end pattern is always ;... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT CENTOS
doveadm-dump
DOVEADM-DUMP(1) Dovecot DOVEADM-DUMP(1)NAME
doveadm-dump - Dump the content of Dovecot's binary mailbox index/log
SYNOPSIS
doveadm [-Dv] dump [-t type] path
DESCRIPTION
Dovecot uses several binary index and log files in order to improve performance for accessing mails. For some mailbox formats, such as
sdbox and mdbox, the index files are part of the format itself. For details about index files, see also: http://wiki2.dovecot.org/Index-
Files
doveadm dump is used to show the contents of those mailbox index/log files, in human readable format. This is mainly useful for Dovecot
developers when debugging some problem.
OPTIONS
Global doveadm(1) options:
-D Enables verbosity and debug messages.
-v Enables verbosity, including progress counter.
Command specific options:
-t type
the file type of the file to be dumped. If the type was omitted, doveadm(1) tries to detect the type of path. type can be:
dbox => m.n (sdbox or mdbox mailbox file)
index => dovecot.index, dovecot.map.index
log => dovecot.index.log, dovecot.map.index.log
mailboxlog => dovecot.mailbox.log
thread => dovecot.index.thread
ARGUMENTS
path The path to the corresponding dbox storage, index or log file. If only a directory is specified, doveadm tries to detect the type
of files under it and dumps them.
EXAMPLE
Look at the contents of a mailbox's index:
doveadm dump ~/Maildir/.work/
REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is avail-
able at: http://dovecot.org/bugreport.html
SEE ALSO doveadm(1)Dovecot v2.2 2012-02-21 DOVEADM-DUMP(1)