Re: sed problem

2010-09-29 Thread lhmwzy
#%sed -e '/GROUP/{/Test/! d}' test sed: 1: /GROUP/{/Test/! d} : extra characters at the end of d command also have error. the system: #uname -a FreeBSD bxzxfreebsd.slof.com 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #1: Fri Dec 4 17:58:13 CST 2009 l...@bxzxfreebsd.slof.com:/usr/obj/usr/src/sys/lhmwzy

sed problem

2010-09-29 Thread lhmwzy
I have a txt file named test: USER Added by ftpadmin GENERAL 0,0 120 204800 0 LOGINS 1 0 -1 -1 TIMEFRAME 0 0 FLAGS 3 TAGLINE lanshu4385 DIR / ADDED 1284812614 ftpadmin EXPIRES 0 CREDITS 15000 RATIO 0 ALLUP 0 0 0 ALLDN 0 0 0 WKUP 0 0 0 WKDN 0 0 0 DAYUP 0 0 0 DAYDN 0 0 0 MONTHUP 0 0 0 MONTHDN 0 0 0

Re: sed problem

2010-09-29 Thread lhmwzy
Both are working. Thk very much. 2010/9/29 Wayne Sierke w...@au.dyndns.ws: On Wed, 2010-09-29 at 17:43 +0800, lhmwzy wrote: #%sed -e '/GROUP/{/Test/! d}' test sed: 1: /GROUP/{/Test/! d} : extra characters at the end of d command also have error. the system: #uname -a FreeBSD

How to auto-logout after XXX idle?

2009-01-20 Thread lhmwzy
When ssh to a sever,how to auto-logout after XXX idle? in tcsh,I know to set autologout=X How in the default /bin/sh shell to autologut? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To