On Fri, 28 Apr 2000,  John Marr wrote about,  scripting question: Just curious:
> I am under a deadline to edit an index for a book. As of right now I am
> editing the index by hand, then going into ms-word and making all of the
> corrections.  an example of the index would be:
> 
> Abarca Puma, Nicanor, 473
> Academica Nacional del Tango. 264-65
> Flutes, Bone, 120
>    Bolivia, 12, 139-40
> 
> 
> Now, I have a list of pages that have been deleted for the book, i.e.
> 92-117, 245, 350-475 . . .
> 
> Would it be possible to create some sort of bash program that would find
> each number and compare them to the list?  If the number matches a number on
> the delted page list, then the script would delete it.  I guess this would
> be possible, but then the only problem would be those pages that are
> continuous ie.264-65. Somehow, the program would have to identify it as
> 264,265.

I see no problem in creating a script to do that.
 
> Would anyone know how I could go about creating a shell script that could do
> all of this.  I really an just beginning to use linux and program, so i
> don't know that much, and this deadline is fast approaching..

Yes i could help, i expect others will offer as well.

A small script using sed and/or grep would do the trick.

> 
> any response would be helpful
> 
> thanks, John

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to