mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
Fix issue with referring to "output.txt" but examples use "output.out"
Fixes https://github.com/adambard/learnxinyminutes-docs/issues/1095
This commit is contained in:
@@ -144,7 +144,7 @@ python hello.py > /dev/null 2>&1
|
|||||||
# if you want to append instead, use ">>":
|
# if you want to append instead, use ">>":
|
||||||
python hello.py >> "output.out" 2>> "error.err"
|
python hello.py >> "output.out" 2>> "error.err"
|
||||||
|
|
||||||
# Overwrite output.txt, append to error.err, and count lines:
|
# Overwrite output.out, append to error.err, and count lines:
|
||||||
info bash 'Basic Shell Features' 'Redirections' > output.out 2>> error.err
|
info bash 'Basic Shell Features' 'Redirections' > output.out 2>> error.err
|
||||||
wc -l output.out error.err
|
wc -l output.out error.err
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ wc -l output.out error.err
|
|||||||
# see: man fd
|
# see: man fd
|
||||||
echo <(echo "#helloworld")
|
echo <(echo "#helloworld")
|
||||||
|
|
||||||
# Overwrite output.txt with "#helloworld":
|
# Overwrite output.out with "#helloworld":
|
||||||
cat > output.out <(echo "#helloworld")
|
cat > output.out <(echo "#helloworld")
|
||||||
echo "#helloworld" > output.out
|
echo "#helloworld" > output.out
|
||||||
echo "#helloworld" | cat > output.out
|
echo "#helloworld" | cat > output.out
|
||||||
|
Reference in New Issue
Block a user