finding hidden files
is there any other way i suppose to find out the hidden file in the system other than
ls -a |
find <path> -name '.*'
|
The find command retrieves the hidden files, too. If you want to find ONLY the hidden files and directories, you can use the -regex option in this way
Code:
find . -regex '.*/\..*' Code:
find . \( ! -regex '.*/\..*' \) |
this works fine
Quote:
|
Once you have found the hidden files, you can execute any command on each entry. Suppose you have
Code:
$ find . -regex '.*/\..*' Code:
$ find . -regex '.*/\..*' -exec ls -l {} \; |
All times are GMT -5. The time now is 09:02 PM. |