It's really too early in the coffee cycle for me to parse regex in my head today...

Steve Huston wrote:
On 9/20/06 12:39 AM, Curt Mills wrote:

On Tue, 19 Sep 2006, Tom Russo wrote:

Sed is for wimps.
Real Programmers use "cat" as their editor.

Call me a real programmer then...   I've done that on occasion!


Jeez, what's that make me.. I don't know how many times I've not
bothered to write a shell script to a file, but just strung the commands
together on the commandline ( for H in `ldapsearch -x -b "ou=Hosts"
'(cn=*)' dn -LLL | grep -v '^$' | sed 's/^dn: cn=\(.*\),ou=Host.*/\1/'`
; do ssh $H uptime ; done )

And yes, scarily enough, I did that from memory.  Just shortened the
base for the ldap query...


--
Gerry Creager -- [EMAIL PROTECTED]
Texas Mesonet -- AATLT, Texas A&M University        
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
_______________________________________________
Xastir mailing list
Xastir@xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to