我需要在shell脚本中使用echo和grep。我能用吗?
我试过了,但不正确:
echo Linux: grep "Linux" ~/workspace/ep-exercicios/m1/e2/intro-linux.html | wc -w
我需要显示消息:
Linux: (number of Linux word on the document).
示例:
Linux: 945
有谁能解释一下,为什么我在linux和windows上用这个代码得到不同的结果。在windows上,它是一个完整的颜色选择器,而在Linux上,它是一个垃圾。两个Tkinter模块都是版本(8.6)
from tkinter import *
from tkinter.colorchooser import *
def getColor():
color = askcolor()
print color
Button(text='Select Color', command=getColor).pack()
mainloop()
我一直在这里搜索,有一个非常类似的问题,在(如何在/中释放更多的空间?)
我遇到的问题是当我尝试解决这个问题的时候。例如: sudo apt-get purge linux-image-2.6.38-11
我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-2.6.38-11-server' for regex 'linux-image-2.6.38-11'
You mi