none
I need a bash script that whould generate conman commands for 603 infiles. RRS feed

  • Question

  • Hello, 

    I am in need of your assistance as i need to create 603 conman commands in Unix. The conman command would look like this:

     conman 'sbd "cd blablablabalabal/file1.in"; into=SCHED; alias=JOB-1; follows=SCHED.JOB-0; at=2000'

    sleep 3

    conman 'sbd "cd blablablabalabal/file2.in"; into=SCHED; alias=JOB-2; follows=SCHED.JOB-1'

    sleep 3

    and so on until i reach 

    conman 'sbd "cd blablablabalabal/file603.in"; into=SCHED; alias=JOB-603; follows=SCHED.JOB-602'

    sleep 3

    The script has to read from an existing path the number of infiles and then create a command for each one as shown before. I think there should be created using a "for" but i not experienced and this is the only way that i could think of as using excell and then notepad ++ is time consuming.

    Do you have any suggestions or maybe an example from where i can develop myself?

    Thank you in advance friends.

    Yours,

    HowNoTo

    • Moved by Bill_Stewart Wednesday, September 4, 2019 5:55 PM Off-topic
    Wednesday, February 20, 2019 10:04 AM

All replies