Another solution.
The substitution for the two digit is straight forward;
a second substitution cares about the one digit.
You can put a t command after the first substitution, then, if successful, the second substitution will be skipped.
This User Gave Thanks to MadeInGermany For This Post:
I have a file like below:
I want to delete the rows which begining with "BC" "CD" and "TY" .
then change every fields into one row like this
at last delete the head words :
USing awk to change it is not hard.
I want to know how to do this work using SED ?
Thank you!
... (4 Replies)
Hello,
I have a file which contains some line as follows,
9.9 TEMP
9.9 MUCOEFF
0.0 EPSILON
And I want to increase this MUCOEFF by 0.2 as
9.9 TEMP
10.1 MUCOEFF
0.0 ... (7 Replies)
Hi
I want to create a configuration file from a template one.
The only thing to change for now is the port number that I need to take from another file that has this format:
server:port
So I need to take the 2nd field.
server is passed in the script argument.
how to do that? I... (1 Reply)
The file is repeating blocks of text separated by a blank line. Some of the lines are unique.
e.g.:
This is unique line
This is line 2
This is line 3
This is line 4
This is unique line
This is line 2
This is line 3
This is line 4
...
The goal is to change/replace line 4... (2 Replies)
So I'm new to this sed command and I am trying to create a script that replaces ip addresses when I name a file but can't tweak it to work.
Here is what it looks like:
#!/bin/bash
#
file=$1
#
sed -e 's/-CPUaddr 10.30.10.166/-CPUaddr 10.30.10.151/g' -i "$file"
sed -e 's/-CPUaddr... (10 Replies)
I want change the file when the line contains $(AA) but NOT contains $(BB), then change $(AA) to $(AA) $(BB)
eg:
$(AA) something
$(AA) $(BB) something (7 Replies)
I have a bunch of file numbers in the file 'test':
I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file 'test'. I've tried the following and various similar alternatives but nothing is working:
cat test |... (3 Replies)
I have a csv file formatted like this:
2014-08-21 18:06:26,A,B,12345,123,C,1232,26/08/14 18:07and I'm trying to change it to MM/DD/YYYY HH:MM for both occurances.
I have got this:
awk -F, 'NR <=1 {print;next}{"date +%d/%m/%Y\" \"%H:%m -d\""$1 "\""| getline dte;$1=dte}1' OFS="," test.csvThis... (6 Replies)
UNIX gurus
I need your help with the following (The server is an AIX box).
I have a text file with the following information:
********************************************************
SOME LINES
case
:WORD1
SOME LINES
:WORD2
SOME LINES
:WORD3
SOME LINES
esac
SOME LINES... (7 Replies)
Hi I want to use sed to change a text files input into an awk script.
For example if the input says " chord -- english " I want to change this using sed 's/pattern 1 /pattern 2 /'g filename but I don't understand how to use part of the pattern 1 to input that into pattern 2 . Like after... (10 Replies)
Discussion started by: enforcer
10 Replies
LEARN ABOUT DEBIAN
re-pcr
RE-PCR(1) General Commands Manual RE-PCR(1)NAME
re-PCR -- Find sequence tagged sites (STS) in DNA sequences
SYNOPSIS
re-PCR [-hV] -p hash-file [-g gaps] [-n mism] [-lq] [primer ...]
re-PCR [-hV] -P hash-file [-g gaps] [-n mism] [-l] [-m margin] [-O+|-] [-C batchcnt] [-o outfile] [-r+|-] [primers-file ...]
re-PCR [-hV] -s hash-file [-g gaps] [-n mism] [-lq] [-m margin] [-o outfile] [-r+|-] [left right lo[-hi] [...]]
re-PCR [-hV] -S hash-file [-g gaps] [-n mism] [-lq] [-m margin] [-O+|-] [-C batchcnt] [-o outfile] [-r+|-] [stsfile ...]
DESCRIPTION
Implements reverse searching (called Reverse e-PCR) to make it feasible to search the human genome sequence and other large genomes by per-
forming STS and primer searches.
OPTIONS -p=hash-file
Perform primer lookup using hash-file
-P=hash-file
Perform primer lookup using hash-file
-s=hash-file
Perform STS lookup using hash-file
-S=hash-file
Perform STS lookup using hash-file
-n=mism Set max allowed mismatches per primer for lookup
-g=gaps Set max allowed indels per primer for lookup
-m=margin Set variability for STS size for lookup
-l Use presize alignments (only if gaps>0)
-G Print alignments in comments
-d=min-max
Set default STS size
-r=+|- Enable/disable reverse STS lookup
-O=+|- Enable/disable syscall optimisation
-C=batchcnt
Set number of STSes per batch
-o=outfile
Set output file name
-q Quiet (no progress indicator)
EXAMPLE
famap -tN -b genome.famap org/chr_*.fa
fahash -b genome.hash -w 12 -f3 ${PWD}/genome.famap
re-PCR -s genome.hash -n1 -g1 ACTATTGATGATGA AGGTAGATGTTTTT 120-200
See famap(1) and fahash(1)SEE ALSO
/usr/share/doc/ncbi-epcr/README.txt
bioperl(1), e-pcr(1), famap(1) and fahash(1)AUTHORS
This manual page was written by Andreas Tille <tille@debian.org> for the Debian system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
April 2008 RE-PCR(1)