'Shell Programming' Category

  • 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.