10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HI
i was studying about variable substitution. below are info which was given in a online tutorial.
${parameter:-word}---> If parameter is null or unset, word is substituted for parameter.
The value of parameter does not change.
${parameter:=word}---> If parameter is null or... (3 Replies)
Discussion started by: scriptor
3 Replies
2. Shell Programming and Scripting
Hi,
The user "MadeInGermany" tried to help on the below post by saying "This has been asked before; see the links below.
Get your current LD_LIBRARY_PATH and redefine that in your ksh script!
"
Thanks for the help. but this did not help. And my post got locked. I can't reply on my previous... (5 Replies)
Discussion started by: girish1428
5 Replies
3. Shell Programming and Scripting
Hello again,
I'm trying to change the following line:
INSERT INTO PH1_TX_LOAD VALUES ('TX-78731-AABSS:4182-4','RH: GUIDE TO TENNIS',TO_DATE('18-JUN-2001:00:00:00', 'DD-MON-YYYY:HH24:MI:SS'),TO_DATE('21-JUN-2001:00:00:00', 'DD-MON-YYYY:HH24:MI:SS'),500)
so that any TO_DATE is taken... (6 Replies)
Discussion started by: user_invalid
6 Replies
4. UNIX for Dummies Questions & Answers
Hey, guys!
Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek:
So, I wanted to use a command statement similar to the following.
This is kinda taken... (2 Replies)
Discussion started by: ProGrammar
2 Replies
5. UNIX for Dummies Questions & Answers
I know this script is crummy, but I was just messing around.. how do I get sed's insert command to allow variable expansion to show the filename?
#!/bin/bash
filename=`echo $0`
/usr/bin/sed '/#include/ {
i\
the filename is `$filename`
}' $1
exit 0 (8 Replies)
Discussion started by: glev2005
8 Replies
6. Shell Programming and Scripting
Can anyone please help me on this.
i have a file with lines say
X X3200 X
X X
X2400 X X4100
I want to use sed to put the numbers in braces.
the output should be like,
X X(3200) X
X X
X(2400) X X(4100) (7 Replies)
Discussion started by: diliphp
7 Replies
7. Shell Programming and Scripting
$ echo $(tty|sed 's#/*/##')
pts/0
$ who | grep $(tty|sed 's#/*/##')
grep: 0652-033 Cannot open 0551-011.
grep: 0652-033 Cannot open Standard.
grep: 0652-033 Cannot open input.
grep: 0652-033 Cannot open is.
grep: 0652-033 Cannot open not.
grep: 0652-033 Cannot open a.
grep: 0652-033 Cannot... (2 Replies)
Discussion started by: wrl
2 Replies
8. AIX
I'm having a problem getting my variables to work in dishing out an RMC script.
The $1 works fine. $2 does not
Here's a portion of the script:
server=$1
filesystem1=$2
#
dsh -w $1 'mkcondition -c "/var space used" -s "Name == \"$2\"" -e "PercentTotUsed > 90" -d "An event will be generated... (7 Replies)
Discussion started by: gravy26
7 Replies
9. Shell Programming and Scripting
Hi,
Just need some help in this.
Suppose there is one file a.txt, which contains this data:
"25187","00000022","00",28-MAR-2007,"" ,"D",-000001550,+0000000000,"C", ,+000000000,+000000000,000000000,"2","" ,29-MAR-2007
613TB.STEXTRF1
"25187","0000004H","00",29-MAR-2007,""... (3 Replies)
Discussion started by: er_ashu
3 Replies
10. UNIX for Dummies Questions & Answers
Hi all ,
When i am tryting to execute crontab from home directory for a shell script which is located in some directory it is giving a error message
The crontab file is
0 9-17 * * 1-5 /mydir/myshell
The following output is given
Your "cron" job
/mydir/myshell
produced the following... (1 Reply)
Discussion started by: arunava_maity
1 Replies