Most Popular in Unix
-
ILOM Sunservice login incorrect
-
Net Calculator
-
zlogin: makeutx failed
-
Auto putty login and an ebook required
-
Jumpstart Error: Unsupported version (3.0).
-
SAN/Solaris: luxadm shows NOT CONNECTED
-
what is the difference between /etc/mnttab and /etc/vfstab
-
Installing bash on AIX 6.1
-
involuntary context switching
-
sppp0 interface in solaris 10
Use Z-Shell for loop to Compact Argument List
Article posted from
My SysAd Blog (http://www.mysysad.com/2008/12/use-z-shell-for-loop-to-compact.html)
The other day I pinged a number of remote workstations to observe Round Trip Times (RTT) but forgot to eliminate a few series of contiguously numbered remotes that were known to be powered-off. Needless to say, the pinging effort was taking longer than it should have -- I promptly aborted the effort. Here is an example of a compact way of performing this common task using a Z-Shell for loop.
# zsh
# for blog in {1..5} {7..13} {15..22} {27..37}
for> ping -s mysysad$blog 1024 5
# zsh
# for blog in {1..5} {7..13} {15..22} {27..37}
for> ping -s mysysad$blog 1024 5
More Stories in My SysAd Blog
- How to Exclude a Directory for TAR
- Restore MySQL Database via Command Line
- Sun StorageTek 6140 Cache
- HTML Symbol Entities issue on Blogger
- Log an FTP Session with a Filter
- The Khan Academy is Teaching the Online World
- Use Redirect Symbol to Zero File
- Run the Windows Explorer GUI
- Retrieve Information on LDAP User
- $HOME/.TTauthority not writable, auth entry not added
Most Popular Stories
A fix for those "Pairing Record Missing" errors
ILOM Sunservice login incorrect
Net Calculator
zlogin: makeutx failed
Auto putty login and an ebook required
Innovation isn't dead, it just moved to the cloud
Diablo 3 Slow on Mac? Here is a Solution
Planning Board Rendering Unveils New Glass-Enclosed Apple Store for Stanford
7 Online Resources To Trace The History Of Your House
Daily iPhone App: Elenints matches Triple Town's planning with a few new tricks