Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
# Create logfile.txt with 100 lines: line 01 to line 100 seq -f "line %02g" 1 100 > logfile.txt # Start a process that runs for 1 second ($! is its PID) sleep 1 & # tail follows the file until that process ends tail -f --pid=$! logfile.txt echo "The process ended, so tail stopped"
line 91
line 92
line 93
line 94
line 95
line 96
line 97
line 98
line 99
line 100
The process ended, so tail stopped