Last active
August 29, 2015 14:07
-
-
Save cismous/6ef3b25a21c2fefc7c1b to your computer and use it in GitHub Desktop.
add namespace support to taobao api for yii2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#查找包含class的这一行,然后在上面插入三行,1.空行; 2.namespace Taobao\Top\Request; 3.空行. | |
sed -i '/class/i\\nnamespace Taobao\\Top\\Request;\n' api_path/*.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment