Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash find files with extension


# syntax
find </path/to/dir> -name '.<extension>'

# example 
find /export/home/jacquesk -name '*.txt'

# This will search in folder-path (including subdirectories) 
# of "/export/home/jacquesk", and will show any files 
# that end in '.txt'
 
PREVIOUS NEXT
Tagged: #bash #find #files #extension
ADD COMMENT
Topic
Name
3+2 =