Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find unix

# list all files in current folder and subfolders with given pattern
find . -name "pattern"
# list all files that match pattern 1 or pattern2
find . -type d -name pattern1 -or -name pattern2
# list all files that match pattern excluding a path
find . -type d -name 'pattern' -not -path 'excluded_path/*'
# list all files with size > 100k and size < 1M
find . -type f -size +100k -size -1M
# list all files last edited in last 3 days
find . -type f -mtime +3
Comment

find syntax unix

 find . -name *.c -print
Comment

PREVIOUS NEXT
Code Example
Shell :: install kind 
Shell :: delete a local and remote git branch 
Shell :: git how get a list of file names changed in a commit 
Shell :: npm uninstall 
Shell :: shell script while loop example 
Shell :: add gif to readme.so 
Shell :: delete folder terminal mac 
Shell :: gitignore tracked files 
Shell :: bash run a command every x second 
Shell :: composer xampp windows 
Shell :: send giphy on slack 
Shell :: iptables deny all 
Shell :: linux convert mp3 to ogg 
Shell :: install next.js 
Shell :: windows service start 
Shell :: docker run in interactive mode 
Shell :: take input from user windows shell 
Shell :: enable rdp windows 10 powershell 
Shell :: unzip tar.xz linux 
Shell :: sed digits 
Shell :: get files changed in branch 
Shell :: expo install 
Shell :: copy secret from one namespace to another 
Shell :: We no longer support global installation of Create React App. 
Shell :: 15 second rubber ducky password 
Shell :: pytorch conda environment 
Shell :: husky install 
Shell :: linux list environment variables 
Shell :: split string in shell 
Shell :: Connect to Remote MySQL Database through Command Line 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =