×
Create a new article
Write your page title here:
We currently have 3,188 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,188Articles

    UUOC: Difference between revisions

    imported>mutante
    m (Replacing page with '<jargon />')
    imported>mutante
    mNo edit summary
     
    Line 1: Line 1:
      +
    UUOC (from comp.unix.shell on [[Usenet]]) stands for "Useless Use of cat"; the reference is to the [[Unix]] command [[cat]](1), not the [[Panthera|feline]] animal. As received wisdom on comp.unix.shell observes, "The purpose of cat is to concatenate (or 'catenate') files. If it's only one file, concatenating it with nothing at all is a waste of time, and costs you a process." Nevertheless one sees people doing
      +
      +
    cat file | some_command and its args ...
      +
      +
    instead of the equivalent and cheaper
      +
      +
    <file some_command and its args ...
      +
      +
      +
    from [[Wikipedia:Cat (Unix)]]
      +
      +
    [http://sial.org/code/shell/tips/useless-cat/ Useless use of cat]
      +
      +
      +
    also see: [[cat]]
      +
     
    <jargon />
     
    <jargon />
      +
      +
    [[Category:Unix]]
      +
    [[Category:Jargon]]

    Latest revision as of 07:09, 14 November 2007

    UUOC (from comp.unix.shell on Usenet) stands for "Useless Use of cat"; the reference is to the Unix command cat(1), not the feline animal. As received wisdom on comp.unix.shell observes, "The purpose of cat is to concatenate (or 'catenate') files. If it's only one file, concatenating it with nothing at all is a waste of time, and costs you a process." Nevertheless one sees people doing

    cat file | some_command and its args ...
    

    instead of the equivalent and cheaper

    <file some_command and its args ...
    


    from Wikipedia:Cat (Unix)

    Useless use of cat


    also see: cat

    <jargon />

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.