Skip to main content [deleted by user] : r/bash
r/bash icon
Go to bash
•
[deleted]

[deleted by user]

Best
Open comment sort options
[deleted]
•

Comment deleted by user

[deleted]
•

Comment deleted by user

I think the for loop is replacing spaces with %20.

Maybe this would be better?

search="${@// /%20}"
More replies

don't you need to escape characters such as &, /, ?, and # for this to work correctly?

It looks like your submission contains a shell script. To properly format it as code, place four space characters before every line of the script, and a blank line between the script and the rest of the text, like this:

This is normal text.

    #!/bin/bash
    echo "This is code!"

This is normal text.

#!/bin/bash
echo "This is code!"

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.