'Shell Programming' Category

  • Learning Linux Commands: tee

    February 16, 2012

    So little input, so much output As any regular Unix user can tell you, there are three primary “streams” in which programs are fed and output data.    STDIN, which by default is the keyboard.   STDOUT, which by default is your terminal/screen, and STDERR, which by default is also your terminal/screen.   In addition [...]

  • Adding a line to the beginning of a file in Unix/Linux

    May 11, 2009

    This morning someone asked me how to do a relatively simple operation from a Unix shell: Adding a line of text to the beginning of a file. Much to my surprise he asked for help with amazingly complex methods he had tried. Okay everyone, no need to hit this thumbtack with a sledgehammer!  Let’s say you have a [...]

 
©2011, The Linux Fix. Linux web hosting, dedicated servers built for developers, and open source support.