10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Exercise Five
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 Replies
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.
#!/bin/sh
target=www.google.com
date +"%D"_"%T" >> /home/rich/mtr.log
echo "----------------------------------------" >>... (1 Reply)
Discussion started by: closedown
1 Replies
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
#!bin/sh
`quota -v | grep ^/home | awk... (2 Replies)
Discussion started by: musicmancanora4
2 Replies
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
meaning:
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
3 Replies
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
exer1=$1
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
1 Replies
6. Shell Programming and Scripting
Hello.
I need a good & complete Bourne shell tutorial.
Please, can anyone help me to find it?
Thanks. (1 Reply)
Discussion started by: jag
1 Replies
7. Shell Programming and Scripting
Hey guys,
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
2 Replies
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
3 Replies
9. UNIX for Dummies Questions & Answers
hey,
i have 2 files... orders and products
how do i do calculations on the order using the products ?
say if the products file is:
a123:shirt:10.00
zz123:nice shirt:19.95
and the order file is:
05/08/30 a123 10
zz123 3
Jun-3-1994 a123 2
2005.06.23 a123 2 (1 Reply)
Discussion started by: ganjakh0r
1 Replies
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
1 Replies