[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash scripting



On Mon, 2003-03-10 at 01:02, Jeff Elkins wrote:
> Jeff Elkins <jeffelkins@earthlink.net> writes:
> > ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e
> > s/arm.*/arm/ -e s/sa110/arm/
> >
> > I'm working on polishing my meagre shell scripting skills and would
> > appreciate some feedback on the line above, quoted from the kernel
> > Makefile.
> 
> Thanks for the replies folks!

Note that if you just want to find out if "this OR that" is on a line
or in a stream, some examples:
  dmesg | egrep "port|connection"
  egrep -n "port|connection" /var/log/dmesg

-- 
+---------------------------------------------------------------+
| Ron Johnson, Jr.        mailto:ron.l.johnson@cox.net          |
| Jefferson, LA  USA      http://members.cox.net/ron.l.johnson  |
|                                                               |
| Spit in one hand, and wish for peace in the other.            |
| Guess which is more effective...                              |
+---------------------------------------------------------------+



Reply to: