10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I Would like to know the space allocated by adding up all the allocated space to group of filesystems ..
example ,
df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies
2. Shell Programming and Scripting
Hi,
In my shell script I use the following code to copy files from one directory to other.
for file in `ls`; do
#----------------- Copy Files From INDIR to OUTDIR -------------#
echoen "Copying File ${INDIR}/$file to ${OUTDIR}/${file}"
cp ${INDIR}/$file ... (4 Replies)
Discussion started by: pinnacle
4 Replies
3. Shell Programming and Scripting
Hi Guys,
I'm a newb at shell scripting and successfully attempted a small disk space script (victory!!) but i'm wondering whether it actually takes into consideration KB,MB,GB. Please take a look at the script and advise.
##script to check if file sys has reached threshold.
... (3 Replies)
Discussion started by: Irishboy24
3 Replies
4. Shell Programming and Scripting
Hi All,
Linux 86x64bits Red Hat Linux O/S
Could someone please check and let me know if the shell script has any syntax error as it's not sending mails
Shell script:
cat dataspace.sh
#!/bin/bash
export DBALIST="xyz@abc.com"
export data_capacity
df -k /oradata > dfk.result... (18 Replies)
Discussion started by: a1_win
18 Replies
5. Shell Programming and Scripting
Hi,
I have one shell script which use two parameter however one of its parameter have space in between.
eg.
a.sh 20110114 b c d
here b c d is one parameter
I used 'b c d' but its not giving correct result.
Also i tried b\c\d but this one also didnt work.
Any help would be... (5 Replies)
Discussion started by: diehard
5 Replies
6. Shell Programming and Scripting
Does anybody have anything I can use to help me out with this one? (4 Replies)
Discussion started by: lbone007
4 Replies
7. Shell Programming and Scripting
Hello friends,
I'm newbie in shell scripting...
Until now i have this script:
#!/bin/sh
emailok = email1@domain.com
emailissue = email2@domain.com
limit="50"
df -h | grep -vE '^Filesystem' | awk '{print $1 " " $4 " " $5}'|while read val
do
partition=$(echo $val | awk '{print... (9 Replies)
Discussion started by: john_doe
9 Replies
8. UNIX for Dummies Questions & Answers
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies
9. Shell Programming and Scripting
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
Discussion started by: sakthifire
3 Replies
10. AIX
I need to create a simple shell script to check filesystems space in a file system called "/arch_nb" then based on the percentage use either run another script or exit.
I was thinking of something simple along the lines of:
df -k | then some action to pipe for percentage used
...place... (10 Replies)
Discussion started by: heprox
10 Replies