Thread View: news.software.nn
2 messages
2 total messages
Started by george izumi
Fri, 17 Feb 1995 07:49
nn -x command and reguler exp? How to do?
Author: george izumi
Date: Fri, 17 Feb 1995 07:49
Date: Fri, 17 Feb 1995 07:49
17 lines
1121 bytes
1121 bytes
the nn -x -s japan will bring up articles relating to japan. Is there a way to give it and or type commands? nn -x -s japan and quake or something similar? Any info by e-mail would be appreciated. thanks xy -- Geoi310@netcom.com Visit my homepage at ftp://ftp.netcom.com/pub/ge/geoi310/homepage/a6.html ftp.netcom.com/pub/ge/geoi310
Re: nn -x command and reguler exp? How to do?
Author: Milt Epstein
Date: Wed, 22 Feb 1995 03:20
Date: Wed, 22 Feb 1995 03:20
30 lines
2059 bytes
2059 bytes
geoi310@netcom.com (george izumi) writes: >the nn -x -s japan will bring up articles relating to japan. > >Is there a way to give it and or type commands? > >nn -x -s japan and quake or something similar? > >Any info by e-mail would be appreciated. Checking out the nn man page, it says that if you put a `/' after the "-s", the following pattern is interpreted as a regular expression. Now I didn't find much about what syntax nn uses for regular expressions, but `|' is often used for "or", so I tried the following: nn -xX -s/japan\|quake soc.culture.japan and it seemed to do the trick (that's the only test I did). Note the `\' before the `|' -- that's to escape the `|' from being interpreted by the shell (which would interpret it as a pipe, which would not be good :-). It's not clear what you mean by "and", but basically anything that can be expressed via regexp is fair game. -- Milt Epstein Visiting Research Programmer National Animal Poison Control Center (NAPCC) epstein@napcc-hp.cvm.uiuc.edu College of Veterinary Medicine (CVM) (or mepstein@uiuc.edu) University of Illinois at Urbana-Champaign (UIUC)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads