Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux find file type under a specific folder


find . -type f -name "config-*.json" | grep "prod"

or

# I'd personally use find, but you can glob for these things too:

shopt -s globstar
ls /etc/{,**/}*.conf

# And you can use locate and it's fast but not reliable.

locate '/etc/**.conf'

Comment

PREVIOUS NEXT
Code Example
Shell :: how to add characters before a line 
Shell :: Install Deno - Build and install from source using Cargo 
Shell :: git remove repo from folder 
Shell :: how to make bash script must be ran in sudo 
Shell :: ubunut shortcut to open terminal in current folder 
Shell :: change or set password interactively in linux 
Shell :: Default umask in /etc/login.defs could be more strict like 027 
Shell :: how to run back and front simultaneously linux 
Shell :: touch file bash insert text 
Shell :: Winbuilder 
Shell :: airodump output to file 
Shell :: reac native /bin/sh: adb: command not found 
Shell :: bash: ng: command not found yarn 
Shell :: how to git stash with spesific file 
Shell :: RequestsDependencyWarning chardet 
Shell :: how to make cmd full screen 
Shell :: docker build non-zero code 100 
Shell :: merge branch from another repo 
Shell :: verifier iso linux mint 
Shell :: vnc not working ubuntu dconf 
Shell :: bacula install centos 7 
Shell :: butler push userversion 
Shell :: rhel 8 docker 19.03 
Shell :: mx linux how to see gpu 
Shell :: open command in debian 
Shell :: nx lint ignore warning 
Shell :: Getting Uptime and Load Averages 
Shell :: powershell remove remove startup text 
Shell :: linux get processor count 
Shell :: cd back 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =