Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

regex in shell script

# command Specific 
$ ls *
$ cp [a-z]* dest_dir/
$ cp [!a-z]* dest_dir/

# Grep
$ grep '^[h-k]' log.txt 
$ grep e$ log.txt #line end with 'e'
$ grep ^http log.txt #line begin with http

Comment

PREVIOUS NEXT
Code Example
Shell :: bash expression 
Shell :: linux bash assign variable and print to console 
Shell :: docker run -p port:port meaning 
Shell :: install specific gitlab version on ubuntu 
Shell :: change line endings script for directory 
Shell :: lxc command not found 
Shell :: how to remove directory in linux 
Shell :: "set -x " bash 
Shell :: dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 
Shell :: installing ipython-sql command line 
Shell :: github pypi workflow 
Shell :: how to install tor on kali linux 
Shell :: find docker compose location 
Shell :: how to add code lines in github editor 
Shell :: laravel routes return not found after setting virtual host on localhost linux 
Shell :: idea folder git 
Shell :: lister branches git distantes 
Shell :: batch set from file 
Shell :: exa ls command 
Shell :: create a new repository on the command line on GitHub 
Shell :: running wordpress locally with valet 
Shell :: bash string ends with 
Shell :: bash function parameter 
Shell :: Docker show currently running containers 
Shell :: git pull 
Shell :: check app installed with brew 
Shell :: how to prevent ubuntu sleeping when closing laptop 
Shell :: delete ec2 from terraform 
Shell :: generate zip file terminal 
Shell :: btop++ on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =