Hello,

Have you tried to escape it with '\'?

grep '\#define' somefile | sed -e 's/\$//g' > someotherfile

--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)



Quoting Filip Brcic <[EMAIL PROTECTED]>:

Hi,

I have trouble with putting the # character into my custom command. What I
want to achieve is:

grep '#define' somefile | sed -e 's/\$//g' > someotherfile

The problem is the character # that is getting treated as the start of the
comment. Is there any way to put the # character into the command line of my
custom command? If not, I will do what I do now - make a shell script and
just execute it from cmake. But I would prefer if I could avoid that script
and keep the commands in the makefiles (CMakeLists that is).

Thank you,
Filip Brcic

--
Filip Brcic <[EMAIL PROTECTED]>
WWWeb: http://purl.org/NET/brcha/home/
Jabber: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
ICQ# 40994923
Yahoo! brcha
MSN: [EMAIL PROTECTED]
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to