I want to open multiple terminal windows (20 to be specific) through a bash script. Can someone help ?
Asked
Active
Viewed 1.0k times
3 Answers
4
This little script should be helpful:
#!/bin/bash
for i in {0..19}
do
xterm &
done
Explanation:
{0..19}: number range from 0 to 19 to give total of twentyxterm &: opens terminal and allows you to detach from the original terminal
George Udosen
- 37,534
4
Another script
#!/bin/bash
for i in `seq 1 20`;
do
gnome-terminal
done
muru
- 207,228
Emilio Galarraga
- 276