bash ls exclude substring
Shell
# Note: there isn't an ls command specifically, BUT:
# you could use the 'find' command instead
# syntax ("!" is the entry for not)
find *</path/to/folder> ! -name '*<substring to exclude>'
# example
find /jacquesk/home/RandomFiles ! -name '*ExcludeFile*.txt'
# This will list all the files in the current directory
# of "/jacquesk/home/RandomFiles" that does NOT contain
# "ExcludeFile" (anywhere in the string) AND do not end in ".txt"
Also in Shell:
- Title
- pod deintegrate
- Category
- Shell
- Title
- install docker compose
- Category
- Shell
- Title
- install angular cdk
- Category
- Shell
- Title
- install seaborn
- Category
- Shell
- Title
- gatsby image
- Category
- Shell
- Title
- bash get first argument
- Category
- Shell
- Title
- how to remove node_modules from git
- Category
- Shell
- Title
- linux command print only odd columns
- Category
- Shell
- Title
- install sklearn
- Category
- Shell
- Title
- count occurrences of word in file linux
- Category
- Shell
- Title
- disable monitor on boot linux
- Category
- Shell
- Title
- display folder of path linux bashrc
- Category
- Shell
- Title
- linux find files multiple
- Category
- Shell
- Title
- check changes after git pull
- Category
- Shell
- Title
- install homebrew ios
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- how to upload on github with command
- Category
- Shell
- Title
- install pipenv in ubuntu
- Category
- Shell
- Title
- rtl8821ce driver linux
- Category
- Shell
- Title
- composer install ignore platform reqs
- Category
- Shell
- Title
- git how to add remote
- Category
- Shell
- Title
- how to install pip in ubuntu
- Category
- Shell
- Title
- python.h missing
- Category
- Shell
- Title
- ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic
- Category
- Shell
- Title
- how to install new gatsby project locally
- Category
- Shell
- Title
- check git version
- Category
- Shell
- Title
- ngb-tabset install
- Category
- Shell
- Title
- cordova ios 5.1.0
- Category
- Shell
- Title
- install vscode ubuntu command line
- Category
- Shell
- Title
- ubuntu install sfml
- Category
- Shell
- Title
- chmode ubuntu
- Category
- Shell
- Title
- apache ubuntu Generate CSR stack overflow
- Category
- Shell
- Title
- update to wsl2
- Category
- Shell
- Title
- git reset one file
- Category
- Shell
- Title
- remove systemd service
- Category
- Shell
- Title
- nano edit a file
- Category
- Shell
- Title
- delete github repository curl
- Category
- Shell
- Title
- install jupyter notebook
- Category
- Shell
- Title
- git remove cached directory
- Category
- Shell
- Title
- vieuw the MOTD linux
- Category
- Shell
- Title
- offline heic to jpg converter on linux
- Category
- Shell
- Title
- ansible-galaxy install to specific directory
- Category
- Shell
- Title
- get additional parameters linux scripting
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- how to remove untracked files in git
- Category
- Shell
- Title
- install flask
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- ubuntu check ssh login log
- Category
- Shell
- Title
- snap store android studio
- Category
- Shell
- Title
- git add .
- Category
- Shell
- Title
- laravel create controller
- Category
- Shell
- Title
- grep cheat sheet
- Category
- Shell
- Title
- git ignore still tracking
- Category
- Shell
- Title
- xampp shell fonts
- Category
- Shell
- Title
- bash function
- Category
- Shell
- Title
- add space in cmd path
- Category
- Shell
- Title
- unzip a tar.gz file in linux
- Category
- Shell
- Title
- Load key ".pem": bad permissions
- Category
- Shell
- Title
- npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
- Category
- Shell
- Title
- oh my zsh
- Category
- Shell
- Title
- gnome-shell turn off
- Category
- Shell
- Title
- git delete branch after merge
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- ubuntu delete a symbolic link
- Category
- Shell
- Title
- intall docker ubuntu command
- Category
- Shell
- Title
- powershell script to copy mutliple files into a single file
- Category
- Shell
- Title
- ubuntu view disk space ec2
- Category
- Shell
- Title
- rpi-update specific kernel version
- Category
- Shell
- Title
- how to stop a port in macos
- Category
- Shell
- Title
- laravel create model
- Category
- Shell
- Title
- install gui in command line linux
- Category
- Shell
- Title
- laravel create model and migration
- Category
- Shell
- Title
- ffmpeg change audio codec from m4a to mp3
- Category
- Shell
- Title
- ubuntu install brew
- Category
- Shell
- Title
- to see all after commit in local repository in git
- Category
- Shell
- Title
- npm install cli vue
- Category
- Shell
- Title
- install dependencies @material-ui/lab/Rating
- Category
- Shell
- Title
- bash grep and sort
- Category
- Shell
- Title
- linux symlink directory example
- Category
- Shell
- Title
- how to find installed packages in ubuntu
- Category
- Shell
- Title
- material ui install
- Category
- Shell
- Title
- checking if a directory exists in bash
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- remove directory linux
- Category
- Shell
- Title
- how to check if pip is installed
- Category
- Shell
- Title
- open pdf command line linux
- Category
- Shell
- Title
- git delete all branches except master
- Category
- Shell
- Title
- install webpack
- Category
- Shell
- Title
- how to make your own linux distro
- Category
- Shell
- Title
- install telnet windows server 2012
- Category
- Shell
- Title
- iterm full screen cmd
- Category
- Shell
- Title
- centos copy files ssh
- Category
- Shell
- Title
- how to check installed apps in ubuntu
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- canging branch in git
- Category
- Shell
- Title
- ignore .DS_store when uploading to s3 using shell
- Category
- Shell
- Title
- linux empty log file
- Category
- Shell
- Title
- npm install bootstrap 3.3.7
- Category
- Shell
- Title
- run mysql xampp shell
- Category
- Shell
- Title
- linux install node
- Category
- Shell