I am attempting to move our group to TC9 from Cygwin UNIX on XP for our fairly hefty reporting requirements. We found a set of UNIX commands fully ported to Windows that work well for our purposes, HOWEVER... Frequently in our reporting we must concatenate echoed text with the results of an embedded grep command as shown below UNIX command: echo This file reports $(grep -c '<MerchantRecord action="Add">' CIS.xml) OPEN MerchantRecord tags >> CIS_Validate.txt Resulting in: This file reports 21622 OPEN MerchantRecord tags Questions: How do I achieve the same result when using the Windows-ported grep in TC9? What would that single line of code look like? Or, more precisely, how do we concatenate echoed text with the results of an embedded grep command as shown above from a batch file in TC9?