Am trying to zip a certain number of files and am stuck at below point,
ls -lrt /lag/cnn/*/*/*/adb.tar.gz | grep -nri ABC >> sample.txt
In sample.txt i got filesNames on which i have to do touch command to extract filesNames that i need to tar.
touch -t '<time>' first & touch -t '<time>' last
So my question is , how can i implement this touch in sample.txt to extract what i need based on time and tar those files. Whether touch command and tar command can be added to the above command using pipe or should i do it separately.