[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed: sed "s/d/ ${PWD//\//\\\/}/g" failed.
From: |
章宏九 |
Subject: |
sed: sed "s/d/ ${PWD//\//\\\/}/g" failed. |
Date: |
Sat, 19 Dec 2009 01:38:28 +0800 |
i know i am doing stupid things. :)
address@hidden:~$ echo "sdsds" > 1.txt ; sed
"s/d/\/home\/ubuntu/g" < 1.txt ; sed "s/d/ ${PWD//\//\\\/}/g" 1.txt
s/home/ubuntus/home/ubuntus
sed: -e expression #1, char 9: unknown option to `s'
address@hidden:~$ echo ${PWD//\//\\\/}
\/home\/ubuntu
address@hidden:~$ echo ${PWD//\//\\\/}
\/home\/ubuntu
address@hidden:~$ sed --version
GNU sed version 4.2.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <address@hidden>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
Thank you for your help.
- sed: sed "s/d/ ${PWD//\//\\\/}/g" failed.,
章宏九 <=