[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Querying bash about which characters are escaped

From: Stephen R Laniel
Subject: Querying bash about which characters are escaped
Date: Wed, 10 Aug 2005 13:28:04 -0400
User-agent: Mutt/1.5.9i

I'd like to write a little command-line tool that cleans up
filenames by replacing escaped characters with unescaped
equivalents (e.g., replace ' ' with '_'), or by deleting
escaped characters altogether. I could approximate this
manually -- e.g.,

rename s/\;\'\"\ //g *

-- but that's a hack. I'd prefer to ask bash directly,
"Which characters do you escape?" Bash would hand me back a
list, which I would then use in a script.

Is there a way to query bash about which characters it
escapes? Surely bash knows this; I'm just curious if there's
any way to get that information from it directly.

Stephen R. Laniel
+(617) 308-5571
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]