|
From: Ryan <ry...@gm...> - 2015-03-30 02:24:56
|
find . -name \*.flx -o -name \*.fdoc -exec sed -i 's/\?([A-Za-z][A-Za-z0-9_]*)/\1/' {} \;
Does it all in-place, though.
john skaller <sk...@us...> wrote:
>Using a nice tool, flx_batch_replace:
>
>/usr/local/lib/felix/felix-latest/host/bin/flx_batch_replace -v src
>'.*\.(flx|fdoc)' 'fixup/src/${0}' '\?([A-Za-z][A-Za-z0-9_]*)' '\1'
>cp -r fixup/src/* src
>
>Be interested how to do that with standard unix tools.
>
>I do note the inconsistent replacement notation ${group} for files,
>but \group for strings. Internally these search and replace operations
>are in fact similar. I put the ${group} in because its so hard to type
>\1
>inside a string and get the quoting right. OTOH in bash ${1} is the
>first
>command line argument so that needs to be quoted right too.
>
>
>--
>john skaller
>sk...@us...
>http://felix-lang.org
>
>
>
>--
>You received this message because you are subscribed to the Google
>Groups "Felix Language" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to fel...@go....
>To post to this group, send email to fel...@go....
>Visit this group at http://groups.google.com/group/felix-language.
>For more options, visit https://groups.google.com/d/optout.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Check out my website: http://kirbyfan64.github.io/ |