> but that regular expression would miss letters and symbols, which may > also exist. I really do want the negated character class. > > What am I overlooking?
O'Reilly's "Classic Shell Scripting" sez: Negated Regular Expressions Occasionally it's useful to apply a command to all lines that *don't* match a particular pattern. You specify this by adding an ! character after a regular expression to look for: /used/!s/new/used/g (change new to used on lines not matching used) The POSIX standard indicates that the behavior when whitespace follows the ! is "unspecified," and recommends that completely portable applications not place any space after it. This is apparently due to some historical versions of sed not allowing it. </paste> Does that help any, or am I barking up the wrong tree? Theresa --~--~---------~--~----~------------~-------~--~----~ Central West End Linux Users Group (via Google Groups) Main page: http://www.cwelug.org To post: [email protected] To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] More options: http://groups.google.com/group/cwelug -~----------~----~----~----~------~----~------~--~---
