Skip to main content
added 1 character in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

To create a text file with the result, add > path/to/text-file at the end.

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep -v '^'^\._' should be used instead.

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep -v '^._' should be used instead.

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

To create a text file with the result, add > path/to/text-file at the end.

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep -v '^\._' should be used instead.

added 3 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep -v '^._' should be used instead.

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep '^._' should be used instead.

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep -v '^._' should be used instead.

Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

You can use find to skip unwanted files, no need to grepafterwards:

find PATH \( -name '._*' -prune \) -o -type f -iname '*.mov' -execdir echo {} \;

PS: The reason your second command doesn't work is in the pattern used for grep. You strip out the path name in the find, so grep '^._' should be used instead.