ipython shell awk : Escaping "$" sign
I am figuring out the Ipython shell support. Its seems awk doesn't work ie following command
!ls -l | awk '{print $1}'
just prints "1".
How do I pass the "$" sign correctly to shell. I am using zsh.
两个美元符号给你一个字面的美元符号,所以试试:
!ls -l | awk '{print $$1}'
尝试将$
转义为$
!ls -l | awk '{print $1}'
链接地址: http://www.djcxy.com/p/47590.html
上一篇: 在iPhone上推送与拉取通知