Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get files with name linux

ls | wc -l #Count files on current directory
ls path/to/dir | wc -l #Count files on specific directory path
ls | grep "specific_regex" | wc -l #Count files with specific name or regex
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #files #linux
ADD COMMENT
Topic
Name
6+3 =