Help needed to format the output of df command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • powerfulperl
    New Member
    • Feb 2010
    • 14

    #1

    Help needed to format the output of df command

    Hi, I want to properly format the output of the df command and store the output in the array, the problem here is, in the third line if u guyz c when the location file system path extends the size, %, mounted on.. goes to next line when i try to push the values in the array line by line i want this to appear in one line.. any help is much appreciated.

    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda3 497861 224899 247258 48% /
    /dev/sda1 147764 77278 62857 56% /boot
    /dev/mapper/rootvg-tmp
    6063688 105684 5649988 2% /tmp
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    Where is your code showing us what you tried? Please use the [code] tags.

    Comment

    • powerfulperl
      New Member
      • Feb 2010
      • 14

      #3
      sure dude will reply with the tried code.. thanks for the reply...

      Comment

      Working...