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 <skal...@users.sourceforge.net> 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
>skal...@users.sourceforge.net
>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 felix-language+unsubscr...@googlegroups.com.
>To post to this group, send email to felix-langu...@googlegroups.com.
>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/
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to