I have this project,
Parent
|-ChildA
|-ChildB
|- ....
|-ChildZ
and each child directory contains requirements.txt
that has python package information like this,
packageA==0.1
packageB==5.9.3
...
packageZ==2.9.18.23
I want to cut off all version information so that output file will be,
packageA
packageB
...
packageZ
I am trying,
cat requirements.txt | grep "==" | cut -d "=" -f 1
but it does not iterate all subdirectories and does not save. How can I make it?
Thanks!
*I am using ubuntu20.04