10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I am new in shell scripting. I need help regarding following.
I have 4 files generated by backups daily. I have stored the names of these 4 files into one file. i.e I have 4 files names as a, b, c & d and these names have been put into one file abcd.txt.
Now I want to cat each file in... (7 Replies)
Discussion started by: Ali Sarwar
7 Replies
2. Shell Programming and Scripting
Hello everyone,
I have thought about this for quite some time and know what I want to do but am having some trouble at it. I have a text file filled with numbers like this, there are more in the file obviously. Each number is separated by a space.
1 3 2 4 5
1 -1 1 0 -1 5The idea is... (7 Replies)
Discussion started by: tastybrownies
7 Replies
3. Shell Programming and Scripting
I have a file proc.txt:
if @debug = 1 then
message 'Start Processing ', @procname, dateformat(now(*), 'hh:mm:ss'), @julian type info to client;
end if;
/*
execute immediate with quotes
'insert into sys_suppdata (property, value, key_name)
location ''' || @supp_server || '.' ||... (5 Replies)
Discussion started by: kidncute
5 Replies
4. Shell Programming and Scripting
Hi all,
I jut use a loop to read lines from the user and redirect it to a file.
echo "Enter the line"
while read -r LINE
do
echo $LINE >> FILE
if ;then
break
fi
done
input
app... (1 Reply)
Discussion started by: Ananthdoss
1 Replies
5. Shell Programming and Scripting
Hi,
I am new to shell scripting and is working on a script to extract lines from a log file between two time stamps using awk command. After some research I used following command:
awk '/01 Oct 2011/{p=1} /10 Oct 2011/{p=0} p' test.log >> tmp.log
This works fine. But now i want to... (3 Replies)
Discussion started by: davidtd
3 Replies
6. Shell Programming and Scripting
Hi Experts,
I am tryin to read a file and while doing so i need to skip the lines which start with a hash (#) char.
I thought of using a goto command but a lot of guys on this site say its not the good way to program. Moreover I am using a ksh shell which deos not support goto command.
... (4 Replies)
Discussion started by: bankimmehta
4 Replies
7. Shell Programming and Scripting
hi,
i have 2 files.
file1:
1
2
3
4
5
6
file2:
a
b
c
d
e
f
g
h
i (5 Replies)
Discussion started by: vidyaj
5 Replies
8. Shell Programming and Scripting
1-) For the command below, I want to read second column: 32751. How will I get it ?
$ ps -ef|grep deneme
U00 32751 22745 0 16:30 pts/1 00:00:00 ksh deneme
U00 32762 32132 0 16:30 pts/2 00:00:00 grep deneme
2-) For the command below, how will I read all lines line by line? For... (1 Reply)
Discussion started by: senem
1 Replies
9. Shell Programming and Scripting
Hi,
I need to redirect the lines in a file to a different file if the character starting from 2 to 6 in the line are numerical .
Please let me know if anyone have any script to do this.
Thanks,
Ranjit (4 Replies)
Discussion started by: torenji
4 Replies
10. UNIX for Dummies Questions & Answers
How can I exclude reading lines in a file that contains the following:
filesystem:/home/pach/liv_patches 128005120 88456640 37270758 71% /home/patches
That is, all lines that contain and begins with filesystem: should not be processed/read from a file (5 Replies)
Discussion started by: paulsew
5 Replies
SWISS::DRs(3pm) User Contributed Perl Documentation SWISS::DRs(3pm)
Name
SWISS::DRs
Description
SWISS::DRs represents the DR (database crossreference) lines within an SWISS-PROT + TrEMBL entry as specified in the user manual
http://www.expasy.org/sprot/userman.html .
Inherits from
SWISS::ListBase.pm
Attributes
"list"
An array of arrays. Each element is an array (Database_identifier, primary_key, secondary_key[,further elements]).
Methods
Standard methods
new
fromText
toText
sort
Reading methods
emblacs
Returns a list of all EMBL accession numbers. These are the primary keys of EMBL crossreferences.
pids [$dropVersion]
Returns a list of all PIDs. These are the secondary keys of EMBL crossreferences.
ATTENTION: The EMBL protein identifiers introduced in 1999 are of the form xxxxx.yy, e.g. CAA33128.1 If $dropVersion is set, the
version number (.yy) will be dropped from each PID.
Example:
If the EMBL DR line is
DR EMBL; L37685; AAC41668.1; -.
pids(1) will only return AAC41668, NOT AAC41668.1
Writing methods
deleteUnlessEvidenceCategories $evidenceCategories, @patterns
Like del, but deletes an item only if the item has no evidence tags, or if the evidence tags are not in one of the categories given in
$evidenceCategories.
Example:
$entry->DRs->deleteUnlessEvidenceCategories('CA', 'FlyBase')
will only delete Flybase DR lines which do not have the evidence category 'A' or 'C'.
Filter functions
dbName($dbTargetName)
True if the first element of a DR line (the DB name) matches $dbTargetName. $dbTargetName has to match in full, not only a partial
match.
notDbName($dbTargetName)
True if the first element of a DR line (the DB name) does NOT macht $dbTargetName.
** lines (SWISS-PROT internal format)
Each DR line may be followed by a ** line like
** DR PROSITE; PS12345; XXX_PAT; FALSE_POS_1
These will be stored internally as DR lines with the DB identifier
'_HIDDEN_'. Therefore adding a ** PROSITE line is done as:
$entry->DRs->add(['_HIDDEN_', 'PS12345', 'XXX_PAT', 'FALSE_POS_1']);
perl v5.10.1 2006-01-26 SWISS::DRs(3pm)