linux file statistics the number of rows

linux file statistics the number of rows

File number of rows statistical
cat employee.txt | statistical document the number of lines the -l WC
WC employee.txt the -l

cat employee.txt | wc -c count the number of bytes asking price
wc -c employee.txt

cat employee.txt | wc -w count the number of words
wc -w employee.txt

wc employee file while statistics the number of rows, number of characters, words,

Statistics files, directories, file line number
ls | the number of non-hidden directories and non-hidden files in the current directory statistics wc -l
ls -a | all files and directories under the current directory statistics wc -l
find ./ | wc -l all files in the current directory statistics include hidden files and directories
ls -l | grep "^ -" | wc -l statistics current folder file number
ls -l | grep "^ d" | wc -l statistics under the current folder number of directory
ls -lR | grep "^ d" | wc -l count the number of folder directories, including sub-folders in the
ls -lR | grep "^ -" | wc - l count the number of files in a folder, including sub-folders in the

Guess you like

Origin www.cnblogs.com/jiajunplyh/p/12128819.html