LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2007, 11:25 AM   #1
ferradura
Member
 
Registered: Jun 2006
Location: PT
Distribution: CRUX & Slackware
Posts: 100

Rep: Reputation: 15
help with bash script[solved]


i have a program that has the following syntaxe
Code:
./normfet inputfile outputprefix -nml -ftr
I need a script that calls that program over and over till all the files on my current dir are processed. The outputprefix should be the inputfile name.

Any help will be welcome.
Thanks

Last edited by ferradura; 09-12-2007 at 04:09 AM.
 
Old 09-11-2007, 11:56 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
Do you know any scripting (as in you post what you already got and then receive help) or don't you? (in which case you should *ask* for somebody to make a script for you like "find /some/dir -type f | while read f; do executeSomething "${f}" "${f/%.*}" --args --args; done").
 
Old 09-11-2007, 12:13 PM   #3
ferradura
Member
 
Registered: Jun 2006
Location: PT
Distribution: CRUX & Slackware
Posts: 100

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
Do you know any scripting (as in you post what you already got and then receive help) or don't you? (in which case you should *ask* for somebody to make a script for you like "find /some/dir -type f | while read f; do executeSomething "${f}" "${f/%.*}" --args --args; done").
I didn`t mean to be rude, and believe i wasn`t. I don`t know any scripting, and i posted to ask for help, meaning that i am looking for someone that is kind and has some spare time to make the script i need. Thanks unSpawn.
 
Old 09-11-2007, 03:35 PM   #4
ferradura
Member
 
Registered: Jun 2006
Location: PT
Distribution: CRUX & Slackware
Posts: 100

Original Poster
Rep: Reputation: 15
unSpawn i tried out your tip, and wrote a simple script that does what i needed. thanks
 
Old 09-11-2007, 05:32 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
There ya go, you *can* do it!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variable from bash to perl in a bash script quadmore Programming 6 02-21-2011 05:11 AM
Bash script to create bash script jag7720 Programming 10 09-10-2007 08:01 PM
bash help - urgent baloon Linux - Software 3 04-12-2007 05:12 PM
URGENT: I destroyed bash flamesrock Linux - Software 4 09-04-2004 03:01 PM
URGENT NEED: floatting numbers in BASH shell grueugene Programming 5 03-12-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration