Horje
bash escape all special characters Code Example
bash escape all special characters
#You can use the %q format specifier with printf to take care of the variable escaping for you:
#source: https://serverfault.com/questions/625641/how-can-i-run-arbitrarily-complex-command-using-sudo-over-ssh

cmd="ls -al"
printf -v cmd_str '%q' "$cmd"
ssh user@host "bash -c $cmd_str"




Shell

Related
how much time it takes to install wreless display Code Example how much time it takes to install wreless display Code Example
kubectl expose Code Example kubectl expose Code Example
heroku Failed to install gems via Bundler when remove gem rails Code Example heroku Failed to install gems via Bundler when remove gem rails Code Example
linux copy files across servers Code Example linux copy files across servers Code Example
npm install, npm install for web developer Code Example npm install, npm install for web developer Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9