
lamboap
Deleted
Jan 16, 2001, 9:36 AM
Post #1 of 2
(141 views)
|
Inserting into a file
|
Can't Post
|
|
If anyone can help me with this seemingly easy task, I'd really appreciate it! I'd like to create a script which parses through a file to match a line with a given 'string parameter'. If such a match is made, then I'd like to INSERT a second line either before or after that string, this is determined by a third argument(+ or -). So ideally, I would enter " insert.pl 'searchstring' 'insertstring' 'either + or -' any ideas would help me a long way!
|