script to created folders based on multiple input files
I have a script which takes two arguments as input. In the first argument it take the location of the file.Then it does some processing on this file and store the output to a location provided as a second argument.
Ex- Myscript /apps/bin/file.bam /apps/output
Now i need a script which should create a folder with same name as the input file in the output location. A kind of loop where a new folder should be created everytime the next bam file is selected.
This location will be same
Only the file will be changed.
Remember i have a functionality wherein Multiple *.bam files will be selected. But for each of this files the output should go in individually created folders in output location.