Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get files in directory bash

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

bash find file in directory

$ ls -R | grep -i "pattern"
Comment

bash find file

# syntax 
# find *</path/to/dir> '(' *<filter-1> -o *<filter-2> ')'

# example 
find . '(' -name '*ERR5312209.zip' -o -name '*ERR5312209.TXT' ')'
Comment

PREVIOUS NEXT
Code Example
Shell :: View total data received and sent (Linux) 
Shell :: install spotify-web-api-js 
Shell :: testing cors 
Shell :: how to set meld as git difftool 
Shell :: how to download youtube videos in ubuntu 20.04 
Shell :: how to change execution policy powershell 
Shell :: install cuda in ubuntu 
Shell :: conda install line_profiler 
Shell :: pip install rasterio 
Shell :: valet phpmyadmin 404 
Shell :: download homebrew windows 
Shell :: all git commands 
Shell :: how to install add-apt-repository 
Shell :: surge flutter web 
Shell :: git clone latest commit 
Shell :: git push template 
Shell :: change default branch github 
Shell :: install composer 2 ubuntu 
Shell :: environment variables in systemd 
Shell :: [INS-30131] Initial setup required for the execution of installer validations failed. 
Shell :: ubuntu wifi enabled no internet connection 
Shell :: docker wget not found 
Shell :: reinstall nvidia drivers pop os 
Shell :: unzip linux 
Shell :: how to delete a commit from a branch 
Shell :: how to kill process 
Shell :: pip install pytorch==1.4.0 
Shell :: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pgdg.list:1 and /etc/apt/sources.list.d/pgdg.list:2 
Shell :: ubuntu delete contents of folder 
Shell :: firebase install 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =