LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Closed Thread
 
Search this Thread
Old 05-04-2012, 07:19 AM   #1
prravin1
Member
 
Registered: Feb 2012
Location: India
Posts: 43

Rep: Reputation: Disabled
Smile 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
/apps/bin/
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.
 
Old 05-04-2012, 07:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove multiple folders based on name in one command rjo98 Linux - Newbie 20 09-11-2009 05:42 PM
bash script to delete files / folders based on date and freespace nekawa Linux - Newbie 5 06-08-2009 10:00 PM
Can you make any files and folders created within a directory owned by another user?? helptonewbie Linux - Newbie 13 12-14-2007 05:21 PM
Mounted hard drive's files/folders are invisible when created jay_rod101 Linux - Newbie 6 06-16-2006 02:57 AM
How come folders/viles created via PHP script act different from those dragged in? rvn Linux - Newbie 0 12-09-2003 06:24 PM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration