Code Snippet
- find . -iname '*.txt' -print
End of Code Snippet
Find (find) all text files ('*.txt') in the current directory (.) by case-insensitive filename (-iname) and (-exec) move each one of them (mv {}) to the temp directory (/tmp).
Code Snippet
- find . -iname '*.txt' -exec mv {} /tmp \;
End of Code Snippet
No comments:
Post a Comment