cd /tmp/xxx for infile in data_?.dat; do prefix=`basename $infile .dat` outfile=${prefix}_out.dat tr "," "." < $infile > $outfile done
doesn't work
it cannot handle theses infile outfile environment variables?
either cant read files for infile or there are ambiguous target names for outfile?
Last edited by Scott; 05-05-2013 at 04:03 PM..
Reason: Code tags, please...
Hi guys,
I´m trying to replace the 2 last folders name in a list of directories with a new string, but I´m don´t know which regex to apply.
Directories list:
C/my user/documents/games & music
C/my user/documents/photos 09-24-2008
C/my user/settings/config ?1_2
* The last folder may have... (11 Replies)
cat input.txt
agsbdafgd
ertebrtreter
ahrbrwerg
The last character of a line that does not start with a would be changed to Z.
Final output:
agsbdafgd
ertebrtreteZ
ahrbrwerg
Can anyone post the sed command to do that? (2 Replies)
Hi All,
Was wondering how I can do the following....
I have a String as follows
"ACCTRL000005022RRWDKKEEDKDD...."
This string can be in a file called tail.out or in a Variable called $VAR2
Now I have another variable called $VAR1="000004785" (9 bytes long), I need the content of... (5 Replies)
Hi All,
I have a file having one line only.
It is like
trapsess:inform|10.232.167.18|1|1|50|25|0|0|0|5|1|1|78|0037|
I want to replace the numbers in last two columns by As.
It should look like
trapsess:inform|10.232.167.18|1|1|50|25|0|0|0|5|1|1|AA|AAAA|
Please, suggest me any shell... (12 Replies)
Hi Everyone,
I am new and need your help.
Can anyone please help me in removing the ^M character from all the file in a folder recursively.
Please provide me the code.
Response will be Really appreciated.
Thanks in Advance (4 Replies)
Hello,
I heva a problem creating a script that read specifc value from all the files of an entire folder
I have a number of email files into a directory and i need to extrect from each file 2 specific values.
After that i have to put them into a new file that looks like that:
To: value1
... (1 Reply)
Hi,
I need to replace an entire mailx line as follows using sed:
sed -e 's/<line1>/<newline>/g' <filename>
But I am getting comman garbled error since the new line has many special characters. I enclosed allspecial chars in \ but still no use.
Can any one help me?
Please use code... (2 Replies)
with in my files i have the data like this, starting with a pipe and ending the line with a pipe.
all i want is to replace the first and last pipe , remove those
trying to use following sed command, but it is only showing on the screen the entire data of the file as if it removed, but when i... (4 Replies)
I am trying to use the below sed command to replace all "|" to ^, in a folder had 50 dat files. when i tried with 1 file it worked but when i tried with wild card, is not working.
sed -i 's/"|"/\^/g' *.dat
Is this the proper way to use sed command thank you very much for help. (3 Replies)
I have a file which comes every day and the file data look's as below.
Vi abc.txt
a|b|c|d\n
a|g|h|j\n
Some times we receive the file with only a new line character in the file like
vi abc.txt
\n (8 Replies)
Discussion started by: rak Kundra
8 Replies
LEARN ABOUT DEBIAN
cathparse
CATHPARSE(1e) EMBOSS Manual for Debian CATHPARSE(1e)NAME
cathparse - Generates DCF file from raw CATH files.
SYNOPSIS
cathparse -listfile infile -domfile infile -namesfile infile -outfile outfile -logfile outfile
cathparse -help
DESCRIPTION
cathparse is a command line program from EMBOSS ("the European Molecular Biology Open Software Suite"). It is part of the "Utils:Database
creation" command group(s).
OPTIONS
Input section
-listfile infile
This option specifies the name of raw CATH classification file (caths.list.vX.X) (input). The raw CATH parsable files (classification
and description files) available from ftp.biochem.ucl.ac.uk (/pub/cathdata/v2.4). Default value: caths.list.v2.4
-domfile infile
This option specifies the name of raw CATH classification file (domlist.vX.X) (input). The raw CATH parsable files (classification and
description files) available from ftp.biochem.ucl.ac.uk (/pub/cathdata/v2.4). Default value: domlist.v2.4
-namesfile infile
This option specifies the name of raw CATH classification file (CAT.names.all.vX.X) (input). The raw CATH parsable files
(classification and description files) available from ftp.biochem.ucl.ac.uk (/pub/cathdata/v2.4). Default value: CAT.names.all.v2.4
Output section
-outfile outfile
This option specifies the name of CATH DCF file (domain classification file) (output). A 'domain classification file' contains
classification and other data for domains from SCOP or CATH, in DCF format (EMBL-like). The files are generated by using SCOPPARSE and
CATHPARSE. Domain sequence information can be added to the file by using DOMAINSEQS. Default value: Ecath.dat
-logfile outfile
This option specifies the name of the CATHPARSE log file. Default value: cathparse.log
BUGS
Bugs can be reported to the Debian Bug Tracking system (http://bugs.debian.org/emboss), or directly to the EMBOSS developers
(http://sourceforge.net/tracker/?group_id=93650&atid=605031).
SEE ALSO
cathparse is fully documented via the tfm(1) system.
AUTHOR
Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Wrote the script used to autogenerate this manual page.
COPYRIGHT
This manual page was autogenerated from an Ajax Control Definition of the EMBOSS package. It can be redistributed under the same terms as
EMBOSS itself.
DOMAINATRIX 0.1.0+20100721 08/11/2010 CATHPARSE(1e)