10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
2. Shell Programming and Scripting
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies
3. Shell Programming and Scripting
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies
4. Shell Programming and Scripting
Hi
I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this
Enter the line... (4 Replies)
Discussion started by: sudeep.id
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this
Enter the line to... (1 Reply)
Discussion started by: sudeep.id
1 Replies
6. Shell Programming and Scripting
Hi All
I have a function in a linux script like this
clean_up()
{
db2 -x "UPDATE ${DB_SCHEMA_NAME}.ETL_DAILY SET ETL_STATUS = 'SUCCESSFUL' WHERE PROCESS_DATE = '${INT_RUN_DATE}' AND BATCH_NO = ${CM_BATCH} AND APP_ID = ${APP_ID} AND APP_VERSION = '${APP_VERSION}'" > ${TMPOUT}
... (3 Replies)
Discussion started by: vee_789
3 Replies
7. AIX
What are "Frames" and "Words" in the fcstat output?
vio1:/home/padmin:# fcstat fcs0
<snip>
Transmit Statistics Receive Statistics
------------------- ------------------
Frames: 122844229 363445456
Words: 50940091904 171210861568
<snip>
The... (1 Reply)
Discussion started by: kah00na
1 Replies
8. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file
Sample:
=====================
NEXT HOST
=====================
AEADBAS001
ip access-list extended BLA_Incoming_Filter
ip access-list extended BLA_Outgoing_Filter
access-list 1 permit xxxxxxxxxxxxxx
access-list 2 permit xxxxxxxxxxxxxx
=====================... (4 Replies)
Discussion started by: I-1
4 Replies
ODMGR(1) Quick Database Manager ODMGR(1)
NAME
odmgr - administration utility for QDBM Odeum
SYNOPSIS
odmgr create name
odmgr put [-uri str] [-title str] [-author str] [-date str] [-wmax num] [-keep] name [file]
odmgr out [-id] name expr
odmgr get [-id] [-t|-h] name expr
odmgr search [-max num] [-or] [-idf] [-t|-h|-n] name words...
odmgr list [-t|-h] name
odmgr optimize name
odmgr inform name
odmgr merge name elems...
odmgr remove name
odmgr break [-h|-k|-s] [file]
odmgr version
DESCRIPTION
This manual page documents briefly the odmgr commands.
odmgr is a utility for debugging Odeum and its applications. It features editing and checking of a database. It can be used for full-text
search systems with shell scripts. This command is used in the above format. name specifies a database name. file specifies a file name,
expr specifies the URI or the ID number of a document, words specifies searching words. elems specifies element databases.
OPTIONS
A summary of options is included below. For a complete description, see the file:///usr/share/doc/qdbm-doc/spex.html#odeumcli .
-uri specify the URI of the document explicitly.
-title str
specify the title of the document.
-author str
specify the author of the document.
-date str
specify the modified date of the document.
-wmax num
specify the max number of words to be stored.
-keep the storing mode is not to be overwrite.
-id specify a document not by a URI but by an ID number.
-t output the details of a document in tab separated format.
-h output the details of a document in human-readable format.
-k output keywords of a document.
-s output summary of a document.
-max num
specify the max number of documents of the output.
-or perform OR search, nut AND search.
-idf tune scores with IDF.
-n show ID numbers and scores only.
SEE ALSO
qdbm(3), odidx(1), odeum(3). odopen(3).
AUTHOR
QDBM was written by Mikio Hirabayashi <mikio@fallabs.com>.
This manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian project (but may be used by others).
Man Page 2005-05-23 ODMGR(1)