copy file and rename n times in succession
I have this:
#!/bin/bash #copies named iax modem and saves in ensuing order cp /etc/iaxmodem/iaxmodem-cfg.ttyIAX20 /etc/iaxmodem/iaxmodem-cfg.ttyIAX21 But would like to create the contents of iaxmodem-cfg.ttyIAX20 n more times and name 22, 23 24, etc |
Use a loop:
Code:
for c in {22..28} |
Or alternatively you can use:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 11:17 PM. |