Shell script help
Colin Law
clanlaw at gmail.com
Wed Oct 15 20:56:53 UTC 2014
On 15 October 2014 19:47, Nils Kassube <kassube at gmx.net> wrote:
> Colin Law wrote:
>> Now that I understand it I have amended my script so that it does not
>> need globbing characters in the parameter but it would be interesting
>> to know how to solve the problem where the parameter is multiple words
>> and includes globbing characters.
>
> What do you mean by "where the parameter is multiple words and includes
> globbing characters"? Can you post an example how you want to run the
> script and what the script should do with the parameter?
To clarify, a script called, for example, using something like
myscript "the path*" note the trailing *
and in myscript something like
for f in /a/b/"$1"/*.txt
where this is to be interpreted as
for f in /a/b/the\ path*/*.txt
Colin
More information about the ubuntu-users
mailing list