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 comment

Your email address will not be published. Required fields are marked *