">" command on linux [help please]

This is a discussion on ">" command on linux [help please] within the Tech Board forums, part of the Community Boards category; If I want to place the output of man on a text file file: man bsarch > bsearch.file wich extension ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    277

    Question ">" command on linux [help please]

    If I want to place the output of man on a text file file:

    man bsarch > bsearch.file

    wich extension should I use for file in order that when I open it I have a text without invalid char and a crazy formatation?

    Thx in advance

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    for example create a file named desc.txt, and then use

    man ls >> desc.txt


    also search google for piping

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    The extention doesn't change anything. You could make it nothing or .reallyfreakinlongextention

    Won't make a lick of differene.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Or just use an online version of man: http://www.rt.com/man/
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,764
    He probably means he wants to strip all the bold/italic stuff from a man page and be left with just the printable characters.

    In which case
    Code:
    man bsearch | groff -Tascii > bsearch.txt
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 12:40 PM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 12:03 PM
  3. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 05:17 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21