Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
I/O redirection is used in shell scripting. This feature enables one to take the output of a command and redirect it as an input for another command, or a command can take the input from a file instead of from the standard input stream or from the terminal. The whole process helps connect data streams in various ways.
0
votes
1
answer
92
views
How might I save the the output of "find .... -execdir ..." to a log?
I cannot get the following script:
#!/usr/bin/bash
/usr/bin/find ~/CS -iname "*.html.pmd" -type f -execdir /usr/bin/raco pollen render {} \; > ~/rendering
to redirect the output to the file ~/render …
0
votes
1
answer
83
views
Why does the execution of these functions break out of this while loop?
The following script is meant to trim all media files in the current working directory.
#!/usr/bin/bash
trimmer() {
of=$(echo "${if}"|sed -E "s/(\.)([avimp4kvweb]{3,3}$)/\1trimmed\.\2/")
ffmpeg - …
0
votes
1
answer
389
views
How might I direct the output of "wget -qO- whatever.tar.gz" to both tar and sha256sum?
The following creates csfile with a hash in it, unpacks go1.17.4.linux-amd64.tar.gz downloaded from Golang's official website,
prints out the checksum to stdout and then removes the no longer needed c …
0
votes
0
answers
78
views
Why doesn't creating file with echo work for remote directories in this script?
I aliased the following script:
#!/usr/bin/bash
if [[ -d "template.html" ]]; then
:
else
cp -n /home/$(whoami)/CS/Software/Pollen/template.html .
fi
/usr/bin/echo "#lang pollen
[1]: " > ${1}. …