Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash variable execute

#!/bin/bash

find -L /w3repo/ -mindepth 3 -maxdepth 3 -type d -print0 |
while IFS= read -r -d '' adir; do
	printf "$adir 
"

	ACOM="grep -l "google.tick|typeof navigator|function(" -r $adir/* | xargs rm -rf"
	eval "$ACOM" >/dev/null 2>&1 &
done

printf "


"

ps auxw | grep grep

printf "


"
Comment

bash execute command in variable

# There are 2 way to store the STDOUT of a command in a variable
result=$(echo "Hello World")

# The second way to do it
result=`echo "Hello World"`
Comment

PREVIOUS NEXT
Code Example
Shell :: sudo !! alias 
Shell :: redis ubuntu install 
Shell :: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ 
Shell :: pacman corrupted package 
Shell :: delete playerprefs with new application install unity 
Shell :: running file pug 
Shell :: shellpish 
Shell :: exit telnet 
Shell :: install python 3.6 in colab 
Shell :: how to change wsl default shell 
Shell :: apply stash git 
Shell :: conda install pdftotext 
Shell :: create ssh key github 
Shell :: rename master to main 
Shell :: cannot find mui lab module 
Shell :: how to specify version in npm install 
Shell :: update hour linux 
Shell :: code in terminal 
Shell :: git stash file 
Shell :: docker run with privileges 
Shell :: git delete commit 4785cd1e041 
Shell :: Checking dependencies BASH 
Shell :: connect-session-sequelize installation 
Shell :: regex for url in bash 
Shell :: git pulling one file from a branch 
Shell :: rm directory linux 
Shell :: how to use ssh to connect to a remote server in linux 
Shell :: wget multiple urls from file 
Shell :: video trimmer ubuntu 
Shell :: how to remove a file from git but keep local and ignore file 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =