![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| why the below script is not working ., | konankir | Shell Programming and Scripting | 14 | 03-27-2008 04:32 PM |
| Pls. Help my script not working as it should | cocoabeauty1 | Shell Programming and Scripting | 1 | 07-28-2007 05:11 PM |
| FTP script not working | rookie250 | Shell Programming and Scripting | 2 | 12-19-2006 02:49 AM |
| Script not working as desired | mhssatya | Shell Programming and Scripting | 39 | 08-23-2006 09:51 AM |
| Backspace Not Working in Script | Atama | Shell Programming and Scripting | 4 | 04-26-2002 10:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
bdf script not working !!
Hi,
I have written a funtion which taken bdf output and put's in a file. The idea is to grep a areas which greater then 80% and echo the same on the system. However the script I have written fails with the error :- + awk $0 !~ /^F/ + awk {print $5"\t" $6} + sed s/%// + 1> /tmp/bdflist} ./test[8]: Syntax error at line 9 : `do' is not expected. The script is :- output () {/usr/bin/bdf -l |awk '$0 !~ /^F/' |awk '{print $5"\t" $6}'| sed 's/'%'/''/' >/tmp/bdflist} panic () {while read percent dir do if [[ $percent -ge 80 ]] then echo "File syste Full - `hostname`:$dir is at $percent%" fi done} < /tmp/bdflist output panic Please assist in resolving the same. Thanking you in advance. |
|
||||
|
Unmatched double quote
sed 's/'%'/''/'
sed 's/'%'//' |
| Sponsored Links | ||
|
|