std redirect
This commit is contained in:
parent
6cf54711b9
commit
d3a61ea47c
4
bash/stdredirect/print.sh
Executable file
4
bash/stdredirect/print.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo stdout
|
||||||
|
echo stderr >&2
|
4
bash/stdredirect/redirect.sh
Executable file
4
bash/stdredirect/redirect.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec 3>&1
|
||||||
|
./print.sh 2>&1 1>&3 | sed 's~std~std_changed~'
|
Loading…
x
Reference in New Issue
Block a user