Table of Contents
Quick view on >> Find command and switches <<
We can exclude directories by using the help of “path“, “prune“, “o” and “print” switches with find command.
See the example:
# find ./ -path ./bit/* -prune -o -iname findme -print ./com/findme ./cry/findme
This is not much complicated compared to first method. See the example pasted below:
# find -iname findme ! -path ./bit/* ./com/findme ./cry/findme
Yes, it’s very simple. We can ignore the location by using inverse grep “grep -v” option.
See the example:
# find -iname findme|grep -v bit ./com/findme ./cry/findme
Similar way we can exclude multiple directories also. See the sample outputs:
# find -iname findme ! -path ./bit/* ! -path ./cry?* ./com/findme
Or
# find -iname findme | egrep -v "bit|cry" ./com/findme
When you’re running a business that relies on website traffic and sales to succeed. Then you need to keep it…
Migration! Yes, this word is very big in the web hosting industry and it has its importance. Especially for businesses…
The server is the backbone of the web hosting industry and it acts like a HERO in the web hosting…
Imagine you are on holiday having a cup of tea and browsing your website or blog.Then, what next?You will get…
The web hosting industry is growing every minute, day, and year. It has many terminologies that are important to understand…