I've seen several examples of scripts in thise forum about having a script generate a log file. I have a script that is run from cron and that monitors a file system for a specfic filename(s) and then performs some actions on them. Normally I call this script from another script (which the one... (2 Replies)
Hi,
i am using SuonOS and ksh.
i need to add data into a file(s.txt) using a shell script. i have to pass 3 parameters and these 3 paramaters should add into the file at end of the file.
File s.txt is look like,
---------------------------------
column1|column2|column3
... (1 Reply)
Hi ! All
I want to write a script where, it will open a new shell with a
username / pwd and modify a file of same username and exit.
example:
1. UserA
2. UserB- FileB
ScriptA -> su UserB -> Modify FileB -> Exit ScriptA
Can somebody give me a direction , on how to... (2 Replies)
Hi,
I would like to create a script so that it will ask me the following:
1) What is the ip address?
2) What is the gateway address?
3) What is the hostname?
and then put the answer to the below kickstart file (kickstart.cfg)
Here I included the kickstart.cfg:
# Kickstart file... (9 Replies)
Hi,
Can anyone pls let me know how can i modify the file contents thru script.
Eg.
I have file abc.dat that contains below lines
Merge.resync.cycleFlag
Merge.resync.logFlag
Merge.resync.maxByteRate
Merge.resync.maxSearch
Merge.resync.rate
Merge.resync.tickLog ... (2 Replies)
Hi,
I have a text file which is following format -
COL VAL
ABC 1
ABC 2
ABC 3
ABC 4
ABC 5
My requirement is to search for a particular value (provided by user) in the file and comment the previous entries including that as well.
E.g. If I search for number 3, then the output... (6 Replies)
Hi,
I want a script shell to automate modifying httpd.conf file for
several instances of apache, save httpd.file before changing it, after
modifying it and then restart apache.
- Replace ServerRoot "xxxx" by ServerRoot "yyyy" of all directories :
"... (4 Replies)
Hi All the Helpers!
I have a text file which looks like input.txt.I would request to please suggest me how can I make this file look like output.txt
input.txt
VOP 111 0 1 2
DEM 111 0 222 333 444 555
879 888 987 888 989
VOP 118 0... (2 Replies)
Hi Friends,
I want to convert a csv file into a ordinary .txt file. I am able to convert but I want the output to look as shown below in the .txt file
table findhost=
{
{"xyz","abc"},
{"rxz","mmz"},
{"vrr","nnz"},
}
default={"NONE"}
My current perl script
#!/usr/bin/env perl... (12 Replies)
Discussion started by: dbashyam
12 Replies
LEARN ABOUT DEBIAN
bp_revtrans-motif
BP_REVTRANS-MOTIF(1p) User Contributed Perl Documentation BP_REVTRANS-MOTIF(1p)NAME
revtrans-motif - Reverse translate a Profam-like protein motif
VERSION
Version 0.01
SYNOPSIS
From a file:
revtrans-motif.pl -i motifs.txt
Using pipes:
revtrans-motif.pl < motifs.txt > output.txt
Using interactively at the command prompt:
$ revtrans-motif.pl
MAAEEL[VIKP]
1. ATGGCNGCNGARGARYTNVHN
[^P]H(IW){2,3}
2. NDNCAY(ATHTGG){2,3}
DESCRIPTION
This script takes a protein motif as input and returns a degenerate oligonucleotide sequence corresponding to it. The main reason for doing
this is to design degenerate primers that amplify a given sequence pattern.
The input motif consists of a string of one-letter residues, with any of the following syntactic elements:
[...] : Redundant position.
A position in which more than one residue is allowed. Example:
[TS]YW[RKSD]
^^ ^^^^
[^...] : Negated position.
A position in which any residue is allowed, saved for those between brackets. Example:
[^PW]MK[LAE]
^^
(...){n,m,...} : Repeated motif.
A motif that is repeated n or m times. It can have any of the previous syntactic elements. Example:
A[SN]C(TXX){2,4,8}
^^^
The allowed letters are those that correspond to the 20 natural aminoacids, plus:
B = N + D
Z = Q + E
X = All
OPTIONS -i input-file:
A file with a list of motifs to reverse translate.
-h
Display this help message.
AUTHOR
Bruno Vecchi, "vecchi.b at gmail.com"
BUGS
Please report any bugs or feature requests to "vecchi.b at gmail.com"
COPYRIGHT & LICENSE
Copyright 2009 Bruno Vecchi, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-02 BP_REVTRANS-MOTIF(1p)