Go Back  FlyerTalk Forums > Travel&Dining > Travel Technology
Reload this Page >

shell: run command based on regexp pattern

Community
Wiki Posts
Search

shell: run command based on regexp pattern

Thread Tools
 
Search this Thread
 
Old Apr 22, 2005 | 12:44 pm
  #1  
Original Poster
20 Years on Site
 
Join Date: Sep 2003
Location: Reading, PA
Programs: US lowlife
Posts: 2,006
shell: run command based on regexp pattern

here's a shell question fer ya'll.

for a *NIX shell, based on a regexp pattern, can the shell be smart enough to execute a command based on that?

For instance, if you're doing a ton of sshing or telnetting to devices with a similar device schema (xxxx-nodey) can the shell interpret this as to telnet to that specific node?

Thx all!

-JC
jcooke is offline  
Old Apr 22, 2005 | 12:53 pm
  #2  
All eyes on you!
20 Years on Site
 
Join Date: Apr 2003
Location: RDM
Programs: UA General Member
Posts: 1,247
Originally Posted by jcooke
here's a shell question fer ya'll.

for a *NIX shell, based on a regexp pattern, can the shell be smart enough to execute a command based on that?

For instance, if you're doing a ton of sshing or telnetting to devices with a similar device schema (xxxx-nodey) can the shell interpret this as to telnet to that specific node?

Thx all!

-JC
How does the regex interpolation play into what you're trying to do??? It's unclear to me from your posting.
winkydink is offline  
Old Apr 22, 2005 | 1:19 pm
  #3  
Original Poster
20 Years on Site
 
Join Date: Sep 2003
Location: Reading, PA
Programs: US lowlife
Posts: 2,006
ack, nm. i got it figured out. feel free to close it.
jcooke is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.