Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

zsh bash count directories

$ ls -l .vim | grep -c ^d
11


$ ls -l .vim
total 52
drwxrwxr-x  3 anossovp anossovp 4096 Aug 29  2012 after
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 autoload
drwxrwxr-x 13 anossovp anossovp 4096 Aug 29  2012 bundle
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 colors
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 compiler
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 doc
-rw-rw-r--  1 anossovp anossovp   48 Aug 29  2012 filetype.vim
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 ftdetect
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 ftplugin
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 indent
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 plugin
-rw-rw-r--  1 anossovp anossovp 2505 Aug 29  2012 README.rst
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 syntax

$ ls -l .vim | grep ^d
drwxrwxr-x  3 anossovp anossovp 4096 Aug 29  2012 after
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 autoload
drwxrwxr-x 13 anossovp anossovp 4096 Aug 29  2012 bundle
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 colors
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 compiler
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 doc
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 ftdetect
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 ftplugin
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 indent
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 plugin
drwxrwxr-x  2 anossovp anossovp 4096 Aug 29  2012 syntax
Comment

PREVIOUS NEXT
Code Example
Shell :: temporary failure resolving security.ubuntu.com 
Shell :: sh how to not store a command in history 
Shell :: how to remove directory in linux 
Shell :: how to run a specific knex seed file 
Shell :: host your pdf resume on github and jekyll 
Shell :: debian grub set default kernel 
Shell :: turn off wiregurad ubuntu 
Shell :: rename folder in terminal 
Shell :: batch file with flags 
Shell :: how to install tor on kali linux 
Shell :: How to undo the most recent local commits in Git 
Shell :: pod reference github 
Shell :: vs code remote branch not showing 
Shell :: nativescript create angular project 
Shell :: installing visual studio code in ubuntu 
Shell :: how to download files from linux server 
Shell :: print statement in bashrc 
Shell :: how to install simple screen recorder in fedora 
Shell :: powershell compare 
Shell :: how to download nessus to kali debian 64 bit vm 
Shell :: how to remove all files with a certain file type in terminal 
Shell :: bash check if string does not exist in file 
Shell :: remove yum package with its dependencies 
Shell :: how to clear terminal in linux 
Shell :: git push to my work 
Shell :: git undo all changes 
Shell :: install arch package 
Shell :: how to turn off screenkey 
Shell :: grep pattern options 
Shell :: docker network create 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =