Tag: sedAdding a Line to the Top of a File with SedAugust 25, 2009 I recently needed to add a copyright notice to the top of multiple Java files. In the directory where the files were located I ran the command sed -e '1i\/* Copyright (C) 2009 Aaron Gember. */\n' -i *.java The Categories: Development, Linux |
SearchCategories
Also see Emily & Aaron's Blog Tagsacm apt awk bash benchwork bibtex c compiz dd-wrt dia dvd eeebuntu eeepc eps excel fedora firefox flash freebsd gnome hostname iptables java kde latex mac os x mail merge mediawiki mercurial mrtg nvidia pdf perl phidgets postscript powerpoint printer putty pxe python R route scenery sed snmp ssh structures subnet subversion sudo ubuntu vegetarian vim visio windows word wrt54gl x11 yum Years |