
January 6th, 2013, 07:22 AM
|
|
|
|
Make a backup copy of the original file first, but being an admin you'd be doing that anyway. Right?
Is the list of store numbers to be commented out available in a handy file? If so, you should be able to throw together a quick awk script that parses the original file and, based on the return of a user function output the original line or the original line commented out. The user function would take the store number as a parameter and use that in a system() call to a grep command (use -c or -q options) for this number in the list of numbers to be commented out.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|