![]() |
|
|
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 |
| Script to add a single line to middle of text file. | progkcp | Shell Programming and Scripting | 2 | 05-12-2008 03:44 PM |
| ls command output in single line | arsheshadri | AIX | 7 | 04-28-2008 03:50 PM |
| Single line file editing command? | gator76 | Shell Programming and Scripting | 1 | 04-03-2008 11:09 AM |
| Multi-line output to single line | LinuxRacr | Shell Programming and Scripting | 7 | 02-26-2008 10:05 AM |
| Need output in different lines not in one single line | csaha | Shell Programming and Scripting | 1 | 02-08-2006 08:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Can df output be forced to a single line for each file system?
df generates the following output on one of our systems: Code:
df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vx/dsk/rootvol 4131866 3593316 497232 88% /
swap 19963152 144 19963008 1% /var/run
swap 19985184 22176 19963008 1% /tmp
/dev/vx/dsk/u01 112302757 30834420 80345310 28% /u01
/dev/vx/dsk/node@1 96975 4977 82301 6% /global/.devices/node@1
/dev/vx/dsk/node@2 96975 4988 82290 6% /global/.devices/node@2
/dev/vx/dsk/stkdg/s03
1047527424 60483821 925353439 7% /s03
/dev/vx/dsk/stkdg/s02
1048576000 266825846 732890795 27% /s02
/dev/vx/dsk/sandg/s01
355923968 322686891 31315266 92% /global/s01
Is there a way to force the output to display each Filesystem on a single line instead of splitting the lines after the first column? For example, I am trying to get the output to look like this: Code:
df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/vx/dsk/rootvol 4131866 3593316 497232 88% / swap 19963152 144 19963008 1% /var/run swap 19985184 22176 19963008 1% /tmp /dev/vx/dsk/u01 112302757 30834420 80345310 28% /u01 /dev/vx/dsk/node@1 96975 4977 82301 6% /global/.devices/node@1 /dev/vx/dsk/node@2 96975 4988 82290 6% /global/.devices/node@2 /dev/vx/dsk/stkdg/s03 1047527424 60483821 925353439 7% /s03 /dev/vx/dsk/stkdg/s02 1048576000 266825846 732890795 27% /s02 /dev/vx/dsk/sandg/s01 355923968 322686891 31315266 92% /global/s01 |
|
||||
|
zaxxon,
For whatever reason, we have at least two versions of df installed. One version says that -P is essentially the same as -k. I'm still getting split lines with the second version of df that I found. Thanks for the idea though. |
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|