Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1377
  • Last Modified:

Linux Shell Scripting: Recursively loop through directories and files but skipping files beginning with dot

This processes all files recursively:
for f in $(find /path/to/qqq -type f)
do 
 echo File: $f
done

Open in new window

I want all files that begin with . such as .htaccess to be excluded.
0
hankknight
Asked:
hankknight
1 Solution
 
woolmilkporcCommented:
for f in $(find /path/to/qqq ! -name ".*" -type f )
do
 echo File: $f
done
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now