in message <284684067.01253_at_mails.tsinghua.edu.cn>,
wrote liushidai_at_mails.tsinghua.edu.cn thusly...
>
> + I PipeRead `ps x|grep Fvwm|sed -e
> "s/\\(.*\\)\\/\\(Fvwm[a-zA-Z]\\+\\).*/AddToMenu ModuleList \\2 KillModule
> \\2/"|sort|uniq`
If your sed allows, use a delimiter other than '/' so that you do
not have to escape it to reduce the clutter...
echo 'damn/it' | sed -e 's!damn/!bloody !'
In other words, use a delimiter that does not occur in search
pattern or replacement to minimize number of things to focus on.
I have a feeling, but have not actually tried, that you may be
overescaping things in sed command.
- Parv
--
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun May 16 2004 - 21:19:28 BST