Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create a script that counts the number of directories in the path.

ls | wc -l #Count files on current directory
ls path/to/dir | wc -l #Count files on specific directory path
Comment

PREVIOUS NEXT
Code Example
Shell :: install CMake on fedora 
Shell :: make file writable linux 
Shell :: github minishell1 
Shell :: install ffmpeg ubuntu 
Shell :: linux repository list 
Shell :: pip install apache beam 
Shell :: selinux disable 
Shell :: restart firewalld 
Shell :: how to start docker 
Shell :: centos7 addgroup 
Shell :: bash replace substring 
Shell :: could not open file "postmaster.pid": No such file or directory 
Shell :: get connected wifi password windows 11 
Shell :: git delete the most recent commit 
Shell :: docker exec logs 
Shell :: install node 16.15.0 mac cmd 
Shell :: docker restart 
Shell :: sed get substring between two characters 
Shell :: ubuntu git credentials cache 
Shell :: cmd delete recursive 
Shell :: npm inatall latest version ubuntu 
Shell :: ng g c --skipTests true 
Shell :: angular localize install 
Shell :: change remote git url 
Shell :: linux check path variable 
Shell :: ubuntu server change timezone 
Shell :: clear history linux 
Shell :: install python for latex or pylatex 
Shell :: windows temp dir 
Shell :: This system is not registered with an entitlement server. You can use subscription-manager to register. 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =