Commands executed:
cat a1.txt | grep a | wc -l >> a.txt
cat b.txt | grep a | wc -l >> a.txt
cat c.txt | grep a | wc -l >> a.txt
I want count and the command to append to a.txt.
like
Expected file output: Assume 100,200,300 are counts.
cat a1.txt | grep a | wc -l 100
cat b.txt | grep a | wc -l 200
cat c.txt | grep a | wc -l 300