TEE . read from standard input and write to standard output and files

commandline session

$stat version.c
  File: `version.c'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 801h/2049d	Inode: 5415089     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ jeffrin)   Gid: ( 1000/ jeffrin)
Access: 2013-01-07 19:05:13.000000000 +0530
Modify: 2013-01-07 21:55:50.000000000 +0530
Change: 2013-01-07 21:55:50.000000000 +0530
 Birth: -
$stat version.c | tee newversion.c
  File: `version.c'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 801h/2049d	Inode: 5415089     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ jeffrin)   Gid: ( 1000/ jeffrin)
Access: 2013-01-07 19:05:13.000000000 +0530
Modify: 2013-01-07 21:55:50.000000000 +0530
Change: 2013-01-07 21:55:50.000000000 +0530
 Birth: -
$cat newversion.c
  File: `version.c'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 801h/2049d	Inode: 5415089     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ jeffrin)   Gid: ( 1000/ jeffrin)
Access: 2013-01-07 19:05:13.000000000 +0530
Modify: 2013-01-07 21:55:50.000000000 +0530
Change: 2013-01-07 21:55:50.000000000 +0530
 Birth: -
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s