| 
     
       |  |  |  | 
            
              | 
             
               | 
               
                 |  | UGU: Unix Guru Universe - Unix Tip #4316- January  4, 2025
 -  Home : Help
 : Today's Tip Unix Tip #4316- January  4, 2025
 
 
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
 4315
 - SPACES TO UNDERSORE 1 LINER
 4314
 - NEW TIP BETTER THAN OLD TIP!
 4313
 - REGULAR EXPRESSION FOR FLOATING POINT NUMBER
 4312
 - CHANGING PERMS RECURSIVELY
 4311
 - 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)
 |  |  
                 |  |  
                 |   Copyright 1994-2024 Unix Guru Universe 
 |  |  |  |  |