+ Post New Thread
Results 1 to 2 of 2
*nix Thread, Pipes in Technical; You got to love the Unix shell, I've been Unix everyday for twenty plus years and I still find new ...
  1. #1
    apaton's Avatar
    Join Date
    Jun 2009
    Location
    Kings Norton
    Posts
    283
    Thank Post
    54
    Thanked 106 Times in 87 Posts
    Rep Power
    37

    Pipes

    You got to love the Unix shell, I've been Unix everyday for twenty plus years and I still find new commands/utils that make my day easier.

    Check out Pipe Viewer "pv" and watch the data transferring between pipes, in terms of data rate.

    Replace your
    Code:
    $ ( cd /source ; tar cf - .) | (cd /target ; tar xf - )
    with
    Code:
    $ (cd iso ; tar cf - . ) | pv | (cd ~/Desktop/test ; tar xf - )
    24MB 0:00:01 [ 35MB/s] [<=>                        ]
    The following IBM article explains it better than I could.
    Speaking UNIX: Peering into pipes

    This is now installed on all my Linux/Solaris boxes.
    Ubuntu - sudo apt-get install pv
    Solaris - Freeware List for SPARC and Solaris 10

    Andy

  2. Thanks to apaton from:

    Chillibear (5th November 2009)

  3. #2
    ind1ekid's Avatar
    Join Date
    Jul 2008
    Location
    Nottinghamshire
    Posts
    82
    Thank Post
    6
    Thanked 16 Times in 13 Posts
    Rep Power
    16
    Have to say, when I learned about pipes at uni it certainly makes scripting alot easier



SHARE:
+ Post New Thread

Similar Threads

  1. Yahoo Pipes
    By russdev in forum General Chat
    Replies: 1
    Last Post: 29th December 2008, 09:10 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •