New answers tagged

0

To find all *BETA directories that have new files in them (-mtime -1) and save those directories names in list.txt, try: find -type f -path '*BETA/*' -mtime -1 | sed 's|^\./||; s|BETA/.*|BETA|' | sort -u >list.txt Since your goal is to create newline-separated data in the file list.txt, that must mean that you do not expect any of the directories or ...



Top 50 recent answers are included