Demo entry 6717728

hehe

   

Submitted by anonymous on Feb 27, 2018 at 21:31
Language: Perl. Code size: 254 Bytes.

open FP, $ARGV[0];
foreach $line (<FP>)
{
	$line =~ s/\x0D?\x0A?$//;
	$path0 = "/home/zhuan117/data/ADNI600picked/sbatch502to601";
	#chomp;
	$fname = "script-${line}.sh";
	$cmd = "sbatch ${path0}/${fname}";
	print $cmd, "\n";
	system($cmd);
}

close FP;

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).