![]() |
|
|
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 |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 01:25 PM |
| Why generate "ash and bash" different output for same bash script? | s. murat | Shell Programming and Scripting | 0 | 05-26-2008 08:19 AM |
| processing tab-formated output of command w/bash | sweede | Shell Programming and Scripting | 2 | 05-23-2008 10:17 PM |
| bash:awk output into an array | phamp008 | Shell Programming and Scripting | 2 | 03-16-2008 05:14 AM |
| Bash multiple output redirection | yoi2hot4ya | Shell Programming and Scripting | 2 | 05-31-2005 01:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Bash script undesired output
hi guys,
When for example, I want to get the size of a partition, I have done the following: # result=`fdisk -l | grep /dev/sda1` # echo $result /dev/sda1 1 15000 120487468+ 83 Linux and then I parse this output to get the size. That's just fine. The problem here is that, when I have a disk that does not have a good filesystem on it, it shows: # result=`fdisk -l | grep /dev/sda1` Disk /dev/hdd doesn't contain a valid partition table # I don't want to see that error message. I just want to turn it off. How can I do that? By the way, I have tried redirecting to /dev/null, but no luck! Thanks Last edited by alirezan; 08-13-2008 at 08:42 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|