01-23-2008
go it
sed -n 's/.*\(ERROR=JUD...\).*/\1/p' <file>
thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: mlommel
3 Replies
2. Shell Programming and Scripting
> tnsping $TWO_TASK | grep HOST
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.10.212)(PORT = 1540)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = OMTST15)))
I want to extract like this
HOST = 10.12.10.212
PORT = 1540
SERVICE_NAME = OMTST15
I... (4 Replies)
Discussion started by: dashok.83
4 Replies
3. Shell Programming and Scripting
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)
Discussion started by: shellpower
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a problem in getting values of a specific string on a file, can you please help me what command or script that I will use to get it?
I have a file with the following sample contents. I need to print the values of time. The time sometimes appears on column 2 or column 3. Please... (2 Replies)
Discussion started by: ayhanne
2 Replies
5. Shell Programming and Scripting
Hi All,
I am encountering a problem while removing a string from a file. Actually, i have done this thing before using sed to replace the word but this time word is not specfic. its value is changing with each file.
e.g.
%HD% Serial Number list per DN required. +3... (2 Replies)
Discussion started by: apjneeraj
2 Replies
6. Solaris
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)
Discussion started by: jadoo_c2
5 Replies
7. Shell Programming and Scripting
Hi gurus,
I am trying to figure out how to extract substring from file line (all lines in file), as specified position and specified legth.
Example input (file lines)
dhaskjdsa dsadhkjsa dhsakjdsad hsadkjh
dsahjdksahdsad sahkjd sahdkjsahd sajkdh adhjsak
I want to extract substring on... (5 Replies)
Discussion started by: ProsteJa
5 Replies
8. Shell Programming and Scripting
p.txt
T|DCNT=100|RECCHK=22222.2|PERCHK=32323|#
I want to extract the value of 100 22222.2 and 32323 and assign it to variable
x1,y1,z1
x=`cut -f2 -d "=" p.txt`
x1=`echo $x | cut -f1 -d "|" `
y=`cut -f3 -d "=" p.txt`
y1=`echo $y | cut -f1 -d "|" `
z=`cut -f4 -d "=" p.txt`
z1=`echo $z... (3 Replies)
Discussion started by: w020637
3 Replies
9. Shell Programming and Scripting
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.
Could anoyone help me please?
Thanks in advance (3 Replies)
Discussion started by: nolo41
3 Replies
10. Shell Programming and Scripting
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)
Discussion started by: nolo41
3 Replies
LEARN ABOUT DEBIAN
tigr-extract
TIGR-GLIMMER(1) General Commands Manual TIGR-GLIMMER(1)
NAME
tigr-glimmer -- Fine start/stop positions of genes in genome sequence
SYNOPSIS
tigr-extract [genome-file options]
DESCRIPTION
Program extract takes a FASTA format sequence file and a file with a list of start/stop positions in that file (e.g., as produced by the
long-orfs program) and extracts and outputs the specified sequences.
The first command-line argument is the name of the sequence file, which must be in FASTA format.
The second command-line argument is the name of the coordinate file. It must contain a list of pairs of positions in the first file, one
per line. The format of each entry is:
<IDstring>> <start position> <stop position>
This file should contain no other information, so if you're using the output of glimmer or long-orfs , you'll have to cut off header
lines.
The output of the program goes to the standard output and has one line for each line in the coordinate file. Each line contains the
IDstring , followed by white space, followed by the substring of the sequence file specified by the coordinate pair. Specifically, the
substring starts at the first position of the pair and ends at the second position (inclusive). If the first position is bigger than the
second, then the DNA reverse complement of each position is generated. Start/stop pairs that "wrap around" the end of the genome are
allowed.
OPTIONS
-skip makes the output omit the first 3 characters of each sequence, i.e., it skips over the start codon. This was the behaviour of
the previous version of the program.
-l makes the output omit an sequences shorter than n characters. n includes the 3 skipped characters if the -skip switch is
one.
SEE ALSO
tigr-glimmer3 (1), tigr-long-orfs (1), tigr-adjust (1), tigr-anomaly (1), tigr-build-icm (1), tigr-check (1), tigr-codon-usage (1), tigr-
compare-lists (1), tigr-extract (1), tigr-generate (1), tigr-get-len (1), tigr-get-putative (1),
http://www.tigr.org/software/glimmer/
Please see the readme in /usr/share/doc/tigr-glimmer for a description on how to use Glimmer3.
AUTHOR
This manual page was quickly copied from the glimmer web site by Steffen Moeller moeller@debian.org for the Debian system.
TIGR-GLIMMER(1)