Send string to stdin
Is there a way to effectively do this in bash: /my/bash/script < echo ‘This string will be sent to stdin.’ I’m aware that … Read more
Is there a way to effectively do this in bash: /my/bash/script < echo ‘This string will be sent to stdin.’ I’m aware that … Read more
This question already has answers here: How to redirect and append both standard output and standard error to a file with Bash (9 … Read more
I found this piece of code in /etc/cron.daily/apf #!/bin/bash /etc/apf/apf -f >> /dev/null 2>&1 /etc/apf/apf -s >> /dev/null 2>&1 It’s flushing and reloading … Read more
I know it is not recommended, but is it at all possible to pass the user’s password to scp? I’d like to copy … Read more
I would like to run a find and replace on an HTML file through the command line. My command looks something like this: … Read more
This question already has answers here: How to redirect and append both standard output and standard error to a file with Bash (9 … Read more
This question already has answers here: How to redirect and append both standard output and standard error to a file with Bash (9 … Read more
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question … Read more
To redirect standard output to a truncated file in Bash, I know to use: cmd > file.txt To redirect standard output in Bash, … Read more