Sunday, July 21, 2013

Shell Script : Insert text file into another file at line 'n'

----------------------------------------------------------------------------------------------
script        :  insertext (download) 
purpose    :  insert text file into another file at line n 
requires    :  standard GNU commands 
version     :  1.1 
usage       :  insertext [-hl] <n> <text_file_to_insert> <file> [<file>..] 
----------------------------------------------------------------------------------------------
options:  
     <n>, an integer referring to line number at which to insert the text file
 
     <text_file_to_insert>, the text file to insert
 
     <file>, the text file to insert into
 
     -h, usage and options (this help)
 
     -l, see this script"
----------------------------------------------------------------------------------------------
Enjoy... Amit Kumar Roy
----------------------------------------------------------------------------------------------

No comments:

Post a Comment