[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Shell Scripting Question
- Subject: [ale] Shell Scripting Question
- From: esoteric at 3times25.net (Geoffrey)
- Date: Wed Dec 10 14:07:24 2003
- In-reply-to: <[email protected]>
- References: <[email protected]>
Nick Travis wrote:
> I'm working on a script that creates a static webpage that lists all
> of the files in a directory, it's working fine except for one thing.
> I'm getting a blank space when I create the line of html. here's the
> code:
>
>
>> # create the html to be added to files.html first="<p><a
>> href=\"/music/" middle="\" >" end="</a></p>"
>>
>> echo $first $current_file $middle $current_file $end >>
>> /usr/local/apache2/htdocs/music/files.html
>
>
> Here's what it gives me: /music/ my-file
>
> I need to get: /music/my-file
>
> any thoughts? I'm not very experienced in shell scripting, so
> there's probably a better way to accomplish the same thing.
echo ${first}${current_file}${middle}${current_file}${end}
>
> Thanks Nick
>
>
--
Until later, Geoffrey esoteric at 3times25.net
Building secure systems inspite of Microsoft