Computing.Net > Forums > Programming > Kornshell question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Kornshell question

Reply to Message Icon

Name: ShaqDiesel
Date: June 4, 2008 at 00:07:17 Pacific
OS: winXP
CPU/Ram: amd64/1Gb
Product: custom
Comment:

I have multiple text files, why does this return one result?

for textfile_path in $(find . -name "$2"); do
/* a bunch of statements*/
done

$2 will be filled with *.txt at the command prompt.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: June 4, 2008 at 04:06:33 Pacific
Reply:

Make sure you're passing $2 as '*.txt', or suffer the wrath of shell expansion.


0

Response Number 2
Name: ShaqDiesel
Date: June 6, 2008 at 22:34:03 Pacific
Reply:

thanks, your advice was great and it worked.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Simple Batch File command... Hanging Bat File



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Kornshell question

BASIC question www.computing.net/answers/programming/basic-question/8383.html

hm just a few questions www.computing.net/answers/programming/hm-just-a-few-questions/13257.html

A question of state www.computing.net/answers/programming/a-question-of-state/10281.html