Sponsored Content
Top Forums Shell Programming and Scripting Need assistance with appending strings using sed and variables Post 302235251 by avronius on Thursday 11th of September 2008 12:32:47 PM
Old 09-11-2008
hmm... I missed the $string part - sorry about that.
My script only works on the commandline - with the string manually provided

Last edited by avronius; 09-11-2008 at 01:33 PM.. Reason: grammer
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

appending strings in the files

I have some files created by a process in UNIX. I wanted to do some file processing: 1. I want to append a string "EOF" as the first word on the last line of all the files except the last file. 2.Similarly, I want to append "BOF" string as the first word to all the files except the first... (2 Replies)
Discussion started by: vijaylak
2 Replies

2. Shell Programming and Scripting

appending strings to variable

is it possible? as i keep reading a file, i want one particular variable to keep storing the line that i've read so far (1 Reply)
Discussion started by: finalight
1 Replies

3. Shell Programming and Scripting

appending strings

Hi , while trying to append two strings, it is not properly coming. my code will be like this str1=_TrackingEAR srt2=1.0.0-20080523.155438-12 i am trying to build str3=$str1$str2.tgz but it is appending the last value ot the begingin of the string , but i expect to the end of the... (1 Reply)
Discussion started by: scorpio
1 Replies

4. Shell Programming and Scripting

Appending variables

Hi, I'm having a problem with something I can't really figure out by myself. I've tried to do it with a for loop, but I'm pretty sure it won't work, if I'm not mistaken. Basically, what I'm trying to do is test some variables and if any of them is not empty, add the values of these variables... (5 Replies)
Discussion started by: mutex1
5 Replies

5. Shell Programming and Scripting

appending two strings

Hi, I have a small doubt. Here is the code snippet for which the output that I'm getting are a bit surprising. testing.sh #!/bin/sh arg_1=$1 echo "arg passed by user is:${arg_1}" mapping=`grep ${arg_1}= testing.conf | awk -F"=" '{print $2}'` echo "mapping is $mapping"... (4 Replies)
Discussion started by: badrimohanty
4 Replies

6. Shell Programming and Scripting

replace two character strings by two variables with sed command

Hello, I want to writte a script that replace two character strings by two variables with the command sed butmy solution doesn't work. I'm written this: sed "s/TTFactivevent/$TTFav/g && s/switchSLL/$SLL/g" templatefile. I want to replace TTFactivevent by the variable $TTFav, that is a... (4 Replies)
Discussion started by: POPO10
4 Replies

7. Shell Programming and Scripting

Need assistance with sed

Hi All, I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text: Device | IPMB0-A | IPMB0-B Board Address |Sent SentErr %Errr |Sent SentErr ... (9 Replies)
Discussion started by: Dendany83
9 Replies

8. UNIX for Advanced & Expert Users

Need assistance with sed

Hi All, I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text: Device | IPMB0-A | IPMB0-B Board Address |Sent SentErr %Errr |Sent SentErr ... (10 Replies)
Discussion started by: Dendany83
10 Replies

9. Shell Programming and Scripting

sed assistance

Hello everyone. I am trying to replace sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash); with sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash); this is the code I was trying but is... (9 Replies)
Discussion started by: crombiecrunch
9 Replies

10. UNIX for Beginners Questions & Answers

Assistance to connect to servers via ssh once and collect various commands into separate variables

Hello, We use as bash script to connect to servers listed in an .csv file to issue commands against these servers and retrieve data to be saved in a .csv file. The data we want to collect is saved in variables. We issue an ssh command for each variable we want to capture. I'm thinking this is... (9 Replies)
Discussion started by: greavette
9 Replies
LIBSCAN(1e)						     EMBOSS Manual for Debian						       LIBSCAN(1e)

NAME
libscan - Diagnostic searches for protein families. SYNOPSIS
libscan -mode list -grib boolean -henik boolean -hmm boolean -sam boolean -pssm boolean -sig boolean -hmmpath string -hmmextn string -hmmoutpath string -hmmoutextn string -sampath string -samextn string -samoutpath string -samoutextn string -pssmpath string -pssmextn string -niter integer -thresh float -maxhit integer -pssmoutpath string -pssmoutextn string -gbvpath string -gbvextn string -gbvgapo float -gbvgape float -gbvoutpath string -gbvoutextn string -hnfpath string -hnfextn string -hnfgapo float -hnfgape float -hnfoutpath string -hnfoutextn string -sigpath string -sigextn string -nterm list -sub matrixf -siggapo float -siggape float -sigoutpath string -sigoutextn string -db seqset -scopf infile libscan -help DESCRIPTION
libscan is a command line program from EMBOSS ("the European Molecular Biology Open Software Suite"). It is part of the "Protein:3D Structure" command group(s). OPTIONS
-mode list libscan runs in one of two modes either (i) database search mode or (ii) library screen mode. In database search mode libscan reads one or more directories each containing a single type of discriminating element, the permitted types are sparse sequence signature, Gribskov profile, Henikoff profile or hidden Markov model. In library screen mode, libscan reads a sequence set, screens each sequence against the library (directories of discriminating elements) and writes a library scan file (of top-scoring families) for each one. Default value: 2 -grib boolean Default value: N -henik boolean Default value: N -hmm boolean Default value: N -sam boolean Default value: N -pssm boolean Default value: Y -sig boolean Default value: N -hmmpath string Default value: ./lib/ -hmmextn string Default value: .hmm -hmmoutpath string Default value: ./ -hmmoutextn string Default value: .hmmout -sampath string Default value: ./ -samextn string Default value: .mod -samoutpath string Default value: ./ -samoutextn string Default value: .samout -pssmpath string Default value: /data/structure/lib/pssm/ -pssmextn string Default value: .chk -niter integer Default value: 1 -thresh float Default value: 100 -maxhit integer Default value: 1000 -pssmoutpath string Default value: ./ -pssmoutextn string Default value: .pssmout -gbvpath string Default value: ./ -gbvextn string Default value: .grib -gbvgapo float Default value: 10.0 -gbvgape float Default value: 0.5 -gbvoutpath string Default value: ./ -gbvoutextn string Default value: .gribout -hnfpath string Default value: ./ -hnfextn string Default value: .henik -hnfgapo float Default value: 10.0 -hnfgape float Default value: 0.5 -hnfoutpath string Default value: ./ -hnfoutextn string Default value: .henikout -sigpath string Default value: ./ -sigextn string Default value: .sig -nterm list Default value: 1 -sub matrixf Default value: EBLOSUM62 -siggapo float Default value: 10.0 -siggape float Default value: 0.5 -sigoutpath string Default value: ./ -sigoutextn string Default value: .sigout -db seqset In database search mode libscan scans each discriminating element against a sequence set. In library screen mode, libscan reads a sequence set and screens each sequence against the library (directories of disciminating elements) Default value: 49142.vdhf -scopf infile In either mode, a 'scop classification file' is required as a source of family classification data. A scop classification file contains classification and other data for domains from the scop database. The file is in embl-like format and is generated by scopparse. Domain sequence information can be added to the file by using scopseqs. Default value: /data/structure/dcf/scop_raw.dcf 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
libscan 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 LIBSCAN(1e)
All times are GMT -4. The time now is 09:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy