10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Write a Bourne shell script which:
• Professionalism: plan for this from the start.
• Has one command line argument.
• If the command line argument is a directory then the script should output the number of
files in the directory.
• If the command line argument is an ordinary... (2 Replies)
Discussion started by: moesom
2. Shell Programming and Scripting
Attempting to write a script to eventually notify me via email for when there is packetloss across the backbone. I am looking for values greater than 0% in the mtr field.
date +"%D"_"%T" >> /home/rich/mtr.log
echo "----------------------------------------" >>... (1 Reply)
Discussion started by: closedown
3. Shell Programming and Scripting
Hey guys not sure why but when i execute the script i get the correct result but then it says command not found not sure why can anyone see anything wrong with my code below?
I just want to print how much quota i have used in my home directory
`quota -v | grep ^/home | awk... (2 Replies)
Discussion started by: musicmancanora4
4. Shell Programming and Scripting
I have a problem.
Suppose I have a log transport.log with the ff:
tp finished with return code: 203
wrong syntax in tp call
I'm working on creating a script to find out if there are error are not. Unfortunately, the only way to check if there is error is if the return... (3 Replies)
Discussion started by: kdyzsa
5. Shell Programming and Scripting
I need to get 15% of the variable exer1 to be added to other exercises
so far, i've got
aver=`expr $exer \* .15`
but i keep getting an error that an integer value was expected. Is there anyway around this? (1 Reply)
Discussion started by: kdyzsa
6. Shell Programming and Scripting
I need a good & complete Bourne shell tutorial.
Please, can anyone help me to find it?
Thanks. (1 Reply)
Discussion started by: jag
7. Shell Programming and Scripting
I am trying to do a bourne script to look for c files in the current directory. I had it working where it finds the files and asks you to delete them or not, which works, but if there i no files, then it comes up with errors, which iam trying to get rid of. So I thought I would do a if... (2 Replies)
Discussion started by: Pits
8. UNIX for Dummies Questions & Answers
Hi guys !!
well i'm still new in learning UNIX , and actually i'm still studying it by myself ..
anyway, some people told me the Bourne-again shell is a good version of UNIX to work on , and i tried to download yesterday but i didn't know how to start it ...... the ReadMe file associated with... (3 Replies)
Discussion started by: mrsamer
9. UNIX for Dummies Questions & Answers
i have 2 files... orders and products
how do i do calculations on the order using the products ?
say if the products file is:
and the order file is:
05/08/30 a123 10
Jun-3-1994 a123 2
2005.06.23 a123 2 (1 Reply)
Discussion started by: ganjakh0r
10. Shell Programming and Scripting
I need to make a small script that figures out if a filename that the user enters is a file or a directory. and if it is a directory, how many files are in it.
please point me to the right direction, I am a newbie at this. (1 Reply)
Discussion started by: Heedunk