ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
wat i want to do is to make a shell script that can take a path to dir as argument and then go thru the directory and in the process assign the name of the file to a variable in the script lets say $fname.
the reaon i want to do this is coz i have a idv tag editting utility so i would like this script to assign the name of the file in the dir to $fname and then call this prog with the filename.
You don't need a real script to do this - you can use "find". I used it for the very same purpose:
Code:
find /path/to/music -type f -exec tag_editor {} \;
This will run "tag_editor [i]filename[i]" for every file in /path/to/music.
Hi i tried ur method in a script ... one problem though .. i should have mentioned this is my earlier post....
this methos executes the command "tag_editor" on all the files ... but the prog i wanna run requires input from the user ... so any way for this to wait for the user to input the data ??
Last edited by ankit_mcgill; 04-29-2006 at 12:27 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.