- May
- 13,834
- 211
On Win7/32, I did something similar with Gnu utils. I doubt there are 64-bit versions of them, so I now have this on Win10/64. It'll probably get spruced up, but it demonstrates how seamless mixing linux and tcc can be.
That looks innocent enough, but behind the scenes:
Sample output (got with "tl > clip:", snipped):
That made me wonder if I can display head and tail (but not middle) of output instead of manually snipping ... not with anything I can think of.
Code:
v:\> alias tl
(tasklist |! egrep -v "Total|processes|^$" |! sort -f -b --key=2,2 |! tee %temp\tl.tmp & echo ----
%@lines[%temp\tl.tmp] & del /q %temp\tl.tmp)
That looks innocent enough, but behind the scenes:
Code:
v:\> alias egrep
wsl egrep
v:\> alias sort
wsl sort
Sample output (got with "tl > clip:", snipped):
Code:
2100 aesm_service
7872 ApplicationFrameHost
3112 armsvc
3684 BTDevMgr
396 conhost
3344 conhost
628 csrss
4392 csrss
*************************snip**********************
8784 svchost
4 System
5384 taskhostw Task Host Window
5076* tcc [5076] v:\
720 wininit
4468 winlogon
3320 wlanext
8332 WmiPrvSE
976 WUDFHost
0 [System Process]
----
142
That made me wonder if I can display head and tail (but not middle) of output instead of manually snipping ... not with anything I can think of.