10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a bash script called YN that looks like the following
YN "Specify a question" "doThis" "doThat"
where "doThis" will be executed if the answer is "y", otherwise "doThat".
For example
YN "Do you want to list the file dog?" "ls -al dog" ""
Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies
2. Shell Programming and Scripting
I was trying to move a file to a particular directory. In a hurry i forgot to give the dest directory, as below
mv prod.log
The file disappeared. :confused:
Any idea where it might have moved???
And I have tried moving files based on date from one directory to another as below.... (1 Reply)
Discussion started by: siteregsam
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
i am new on this forum, can someone please answer the following questions as i am also new for UNIX, you help would be much appreciated:
1. How do you delete the full directory hierarchy?
2. How do you find out all process run by user Kamran ?
3. how would you extract something... (1 Reply)
Discussion started by: kami151
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
Well my title isn't very clear I think. So to understand my goal:
I have a script "test1"
#!/bin/bash
xvkbd -text blabla
with xbindkeys, I bind F5 key in order it runs my test1 script
So when I press F5, test1 runs.
I'm under Emacs/Vi and I press F5 in order to have "blabla" be... (0 Replies)
Discussion started by: xib.be
0 Replies
5. UNIX for Advanced & Expert Users
plsssssss help me
i m getting maid.
i fired below commands
while
do
sso=501688351
echo "Hi ," >> file_send;
mailx -c manoj.dahiya1@ge.com -s " mail checking" $sso@mail.ad.ge.com < file_send
cas=num
done
now i am getting mails every seconds...
plsssss help me , how... (2 Replies)
Discussion started by: manoj_dahiya22
2 Replies
6. Shell Programming and Scripting
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies
7. Shell Programming and Scripting
Hi all,
Actually i want to delete the .ps extension from package1.ps string by using sed.
Can any body tell me that how shell i do it?????????
It is very urgent. Can anybody help me. I am trying to do this in the following way.
ps_file="package1.ps"
echo $ps_file
sed s/.ps//g $ps_file... (9 Replies)
Discussion started by: sunitachoudhury
9 Replies
8. HP-UX
Hi,
I have a tape fbackup done (fbackup -f /dev/rmt/0m -i / -I index.fullfbackup) and I need to restore 3 filesystems, I would like to know the correct command and options:
example:
I want to restore the filesystem /data1 under /data1
and /data2 under another filesystem /datatest
I tried... (4 Replies)
Discussion started by: touny
4 Replies
9. HP-UX
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (1 Reply)
Discussion started by: bosskr
1 Replies
10. Shell Programming and Scripting
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (0 Replies)
Discussion started by: bosskr
0 Replies