Fellow Jeniuses (intentional misspelling to show our humility),
I have decided to try to break my old sed / grep / awk habits and start learning and using TPIPE.
When sitting at the TCC prompt, if I just type:
tpipe /grep=3,0,0,0,0,1,0,0,"Tract Master Main - " /input=TM_ALL_List.tmp
it appears that TCC reloads (I see my various 4start text roll by) and then, the results
Here is a normal TCC window start screen for me (mainly 4start stuff):
=====================
. Logged in as MJohnson4... Welcome to Work, Mark!
. Checking folders...
. We are now in the U:\DosUtils\4NT\ folder...
. Alias's read from U:\DosUtils\4NT\Work_Alias.sav file...
. Functions read from U:\DosUtils\4NT\Work_Functions_V12.sav file (by 4start)...
. Script 4Start being validated...
. Script 4Start Validated...
. Ctrl-T set to run TCC. Ctrl-F4 will exit TCC...
. Logging turned off...
. History read from U:\DosUtils\4NT\Work_History.sav file...
[U:\DosUtils\4nt]
=====================
now, I type the tpipe command:
tpipe /grep=3,0,0,0,0,1,0,0,"Tract Master Main - " /input=TM_ALL_List.tmp
that screen clears, then this appears:
=====================
. Logged in as MJohnson4... Welcome to Work, Mark!
. Checking folders...
. We are now in the U:\DosUtils\4NT\ folder...
. Alias's read from U:\DosUtils\4NT\Work_Alias.sav file...
. Functions read from U:\DosUtils\4NT\Work_Functions_V12.sav file (by 4start)...
. Script 4Start being validated...
. Script 4Start Validated...
. Ctrl-T set to run TCC. Ctrl-F4 will exit TCC...
. Logging turned off...
. History read from U:\DosUtils\4NT\Work_History.sav file...
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_278.xl
sx
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_279.xl
sx
set CCYYMMDD=20131115
set HHMM=0957
set stamp=201311150957
echo stamp set to: 201311150957
stamp set to: 201311150957
pushd U:\DosUtils\4NT
history > Archived\Work_History_201311150957.txt
copy /q Archived\Work_History_201311150957.txt Work_History.sav
popd
echo History saved as Work_History.sav
History saved as Work_History.sav
set CCYYMMDD=20131115
set HHMM=0957
set stamp=201311150957
echo stamp set to: 201311150957
stamp set to: 201311150957
pushd U:\DosUtils\4NT
copy /q 4nt.log Archived\Work_4nt_201311150957.log
echo > 4nt.log
popd
echo 4nt.log saved as Work_4nt_201311150957.log
4nt.log saved as Work_4nt_201311150957.log
[U:\DosUtils\4nt]
=====================
I see the TPIPE results (in bold) intermixed with a bunch of 'echoed on' 4start and startup alias commands.
If instead I use grep (GNU):
grep -i "Tract Master Main - " TM_ALL_List.tmp
the output is just 2 new lines at the current screen location:
=====================
[U:\DosUtils\4nt]grep -i "Tract Master Main - " TM_ALL_List.tmp
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_278.xlsx
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_279.xlsx
[U:\DosUtils\4nt]
=====================
How do I prevent TPIPE from reloading TCC and rerunning 4start (like grep does)?
--Peniel02
I have decided to try to break my old sed / grep / awk habits and start learning and using TPIPE.
When sitting at the TCC prompt, if I just type:
tpipe /grep=3,0,0,0,0,1,0,0,"Tract Master Main - " /input=TM_ALL_List.tmp
it appears that TCC reloads (I see my various 4start text roll by) and then, the results
Here is a normal TCC window start screen for me (mainly 4start stuff):
=====================
. Logged in as MJohnson4... Welcome to Work, Mark!
. Checking folders...
. We are now in the U:\DosUtils\4NT\ folder...
. Alias's read from U:\DosUtils\4NT\Work_Alias.sav file...
. Functions read from U:\DosUtils\4NT\Work_Functions_V12.sav file (by 4start)...
. Script 4Start being validated...
. Script 4Start Validated...
. Ctrl-T set to run TCC. Ctrl-F4 will exit TCC...
. Logging turned off...
. History read from U:\DosUtils\4NT\Work_History.sav file...
[U:\DosUtils\4nt]
=====================
now, I type the tpipe command:
tpipe /grep=3,0,0,0,0,1,0,0,"Tract Master Main - " /input=TM_ALL_List.tmp
that screen clears, then this appears:
=====================
. Logged in as MJohnson4... Welcome to Work, Mark!
. Checking folders...
. We are now in the U:\DosUtils\4NT\ folder...
. Alias's read from U:\DosUtils\4NT\Work_Alias.sav file...
. Functions read from U:\DosUtils\4NT\Work_Functions_V12.sav file (by 4start)...
. Script 4Start being validated...
. Script 4Start Validated...
. Ctrl-T set to run TCC. Ctrl-F4 will exit TCC...
. Logging turned off...
. History read from U:\DosUtils\4NT\Work_History.sav file...
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_278.xl
sx
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_279.xl
sx
set CCYYMMDD=20131115
set HHMM=0957
set stamp=201311150957
echo stamp set to: 201311150957
stamp set to: 201311150957
pushd U:\DosUtils\4NT
history > Archived\Work_History_201311150957.txt
copy /q Archived\Work_History_201311150957.txt Work_History.sav
popd
echo History saved as Work_History.sav
History saved as Work_History.sav
set CCYYMMDD=20131115
set HHMM=0957
set stamp=201311150957
echo stamp set to: 201311150957
stamp set to: 201311150957
pushd U:\DosUtils\4NT
copy /q 4nt.log Archived\Work_4nt_201311150957.log
echo > 4nt.log
popd
echo 4nt.log saved as Work_4nt_201311150957.log
4nt.log saved as Work_4nt_201311150957.log
[U:\DosUtils\4nt]
=====================
I see the TPIPE results (in bold) intermixed with a bunch of 'echoed on' 4start and startup alias commands.
If instead I use grep (GNU):
grep -i "Tract Master Main - " TM_ALL_List.tmp
the output is just 2 new lines at the current screen location:
=====================
[U:\DosUtils\4nt]grep -i "Tract Master Main - " TM_ALL_List.tmp
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_278.xlsx
\\row.myacmp.com\Guides and Recources\MLP Mortgage\REPORTS\MJohnson Master Files\All Areas Management\Tract Master Main - 20131105 V4c_279.xlsx
[U:\DosUtils\4nt]
=====================
How do I prevent TPIPE from reloading TCC and rerunning 4start (like grep does)?
--Peniel02