"Rohit Atri" wrote:
> a.) Will words within angled brackets contain special characters and numbers as well? > If yes, then are we suppose to consider them as part of the word or extract just the > alphabets within them and add entries to the index accordingly. For e.g will the > words and <linux2> be two separate words or they should be added to the > index of common word 'linux' ?
I appreciate your concern and desire to get this correct, but you're "overthinking it".
Yes, ANY characters may appear within the angle brackets.
If the character sequences between two sets of angle brackets are different,
then they result in different index terms (other than alphabetic case being mapped to
If the book author makes a mistake in how they mark the desired index entries, than that's their
task to fix the entries, not for the shellscript writer to guess what the author may have meant.
> b.) About words with spaces in them: if we've two words like < linux > and <linux > > i.e words which have same alphabets but different space position within the angled > brackets, then are we supposed to consider these kinds of words as just one word > "linux" or two different words " linux " and "linux " ?
As for your first question.