Search Results

Search: Posts Made By: rsampathy
Forum: UNIX and Linux Applications 09-21-2009
4,585
Posted By rsampathy
Tee with pipe command.
cat work.txt
M|324324|32424|3431
M|324324|32424|3431
N|324324|32426|3432
N|324324|32424|3434
M|324324|32424|3435
cat work.txt | tee $( grep '^M' > m.txt ) | $( grep '^N' > n.txt )...
Forum: HP-UX 09-21-2009
9,477
Posted By rsampathy
Tee command using pipe
work text.txt:
M|324324|32424|3431
N|324324|32426|3432
N|324324|32424|3434
M|324324|32424|3435
mkfifo $pipe1 $pipe2
tee $Pipe2 < ( $pipe1 | grep "^N" | cut -d '|' -f 2-4 | sort -u >...
Forum: HP-UX 09-21-2009
9,477
Posted By rsampathy
Thanks Jim. My code is below which does not...
Thanks Jim. My code is below which does not work:

mkfifo $StdMarPbPipe1 && mkfifo $StdMarPbPipe2

ce_bcp.ksh -i out -d itg_credit -t samtmpv1 -f $StdMarPbPipe1 -F "|" -H "|" &

tee...
Forum: HP-UX 09-21-2009
9,477
Posted By rsampathy
HP Unix Tee command.
work.txt
M|324324|32424|3431
N|324324|32426|3432
N|324324|32424|3434
M|324324|32424|3435

AIX command:
cat work.txt | tee >( grep '^M' > m.txt ) >( grep '^N' > n.txt )

which does not work...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy