Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, Sometimes when working with man pages I'd do 'man whatever | col -b > somefile'. That way I could vi somefile & easily search, move up/down, etc--without having to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    3

    How to put info command output into a file?


    Hi,
    Sometimes when working with man pages I'd do 'man whatever | col -b > somefile'. That way I could vi somefile & easily search, move up/down, etc--without having to learn the man way of navigating. I'd like to do the same with the info command. Is this possible?
    Thanks,
    Martin

  2. #2
    Linux Newbie mindblast's Avatar
    Join Date
    Nov 2005
    Location
    iasi, RO
    Posts
    132
    But why? Is preety easy to navigate into manual pages.
    [code]man pachage/code]
    and there you got up and down for moving up and down with one row, and PgUp and PgDn to navigate up and down with one page...

  3. #3
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    It's the same with every command. You can 'pipe' commands through other commands (or programs), I often do 'emerge -s program | less', so I can scroll up and down to read the output of 'emerge -s program'.

    edit: so yes, you can use info > somefile
    Stumbling around the 'net:
    www.cloudyuseful.com

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2005
    Posts
    3
    Hi thanks for the quick reply's.

    Mindblast: I seem to remember when working with man (on linux, solaris, hp all different unix'es) sometimes things work differently. Rather than learn the subtleties of each, I'd rather just use vi. For instance on a SunOS, i just tried PageUp/PageDown on 'man man' & it doesnt work.

    psic: DOH! Such a simple answer I'm embarressed for even posting this topic Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •