Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    AIX doesn't seem to support +, but removal of the []'s seems to have done the trick. Commented Aug 19, 2011 at 15:26
  • I tried using the sed -n version... what happens is I have another computer that has 10+ drives so it starts doing 1, 10, 11, etc... I tried to add a space /hdisk1 / and it gave me a "not recognized function". what seems to work is >> iostat | grep "hdisk1 " | sed -e's/ */ /g' Commented Aug 19, 2011 at 15:33
  • You can also use \s for whitespace which then is iostat | sed -n '/hdisk1/s/\s\+/ /gp' Commented Nov 13, 2020 at 9:58