mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
10 lines
204 B
Bash
10 lines
204 B
Bash
#!/bin/bash
|
|
|
|
# using an alternative file descriptor
|
|
|
|
exec 3>test
|
|
|
|
echo "This should display on the monitor"
|
|
echo "and this should be stored in the file" >&3
|
|
echo "Then this should be back on the monitor"
|