#!/bin/bash
For num 1 2 3 in
Do
For char in 0 1 2 3 4 5 6 7 8 9
Do
Echo $num $char
TrainDT="Lin" ${num} "train_" ${char} ". TXT "
TestDT="Lin" ${num} "val_" ${char} ". TXT "
The cat $train & gt; Ijcnn1tr. TXT
The cat $testds & gt; Ijcnn1ts. TXT
CMD="./libFM - task r - method MCMC - train ijcnn1tr. TXT - test ijcnn1ts. TXT - iter 100 - dim '1,1,2 - out the output ${num} ${char}. LibFM "
` ${CMD} `
The done
The done
How to loop in a shell script execution CMD command? Use the source, Dan didn't succeed,