UGU Unix Guru Universe
For Unix Admins, By Unix Admins
Follow ugucom on Twitter      Search  in 
Home
BEGINNERS & USERS

Events

Internet
 
 Linux
BEGINNERS & USERS
Software
Linux Vendors
Usenet NewsGroups
Books & Publications
 
 Shop
Cool Admin Gifts!
Gadgets
T-Shirts
Books
 
 Unix Guru Universe
About
Add Link
Feedback
 
 
UGU: Unix Guru Universe - Unix Tip #4219- August 30, 2012 - Home : Help : Today's Tip
Unix Tip #4219- August 30, 2012

PIPES AND QUOTING


When you do rsh (remsh in HP-UX) followed by a series of
pipes, consider carefully whether you want the pipe processes
to run on the local or the remote host. If you quote the
pipes, then they become part of the arguments passed to
the remote host and evaluated there. E.g.

rsh myRemoteHost last "|" grep userName "|" head

(In this example, we pipe the output of last to grep,
because in Solaris "last userName" only shows console
logins, not FTP logins.)


This tip generously supported by: bhamilto@world.northgrum.com


NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted by various unix admins around the globe. UGU suggest you read and test each tip in a non-volitile environment before placing into production.


LAST 5 TIPS
4218 - SPACES TO UNDERSORE 1 LINER
4217 - NEW TIP BETTER THAN OLD TIP!
4216 - REGULAR EXPRESSION FOR FLOATING POINT NUMBER
4215 - CHANGING PERMS RECURSIVELY
4214 - METAVALUES FROM A SHELL SCRIPT


I want to SUBSCRIBE and get a UGU Tip everyday.
I want to UNSUBSCRIBE and NOT get a UGU Tip everyday.

If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
Email Address:

Yes, email me a Hot Unix Tip everday.

Enter Hot Unix Tip (optional):

Yes, I will support this tip

Captcha (not case sensitive):


Please enter the above letters:

 
Copyright 1994-2024 Unix Guru Universe