English 中文(简体)
帮助在北纬度终端定期表达和 gr
原标题:Help with regular expression and grep in Linux terminal

我对经常表达和贪.有新鲜之处,但我一直在努力学习,帮助我使用青少年工具。

我不得不使用记号,在我更新一些档案时,我不需要看到一些文件未经更新或如*.pyc延期。 因此,我撰写了一份文字,呼吁:

cvs update -d | grep -v  pyc$  | grep -v  ^? 

第一个问题:为什么cvs Update -d hexachloroep-v (pyc| ) dooesn t work,因此,我需要使用cvs Update -d ́ep-v pyc$ furep -v ^?/code>?

第二个问题:有线性更新的档案

-f update: Updating FILE

I Trial grep -v ^-f and grep -v ^-f , but no luck. 我的表述是错误的? 难道这是我不了解的常规表达问题还是关于含水层的问题?

感谢!

最佳回答

回答只是你提问的一部分:

/code>(变动)和(<>>/code>(组群)仅得到egre的支持以来,你应尝试分级而不是灰色。

EDIT:

第2个问题可能出现,因为五字书写了某些线,以推平,因此,你需要将梯子转而绕开,把电传到<代码>2>&1

问题回答

I have to use cvs, and when I update some files, I don t need to see files that were t updated or with *.pyc extension for example.

如果这是实际问题(实际上有两个单独的问题),那么你想要解决,从一开始就利用从科索沃统计局获得的产出来消除这一错误的解决办法。

对于贵重物品,请在您的项目中添加一个<代码>.cvsignore文档,其单一行文如下:*.pyc,或将这一行文添加到现有的.cvsignore文档中。 这将使科索沃统计局完全无视所有伪装档案,而不是将其列为不为人知。

.cvsignore案卷适用于文件夹以下的所有档案和子公司,其中包括:cvsignore,如果所有纸质档案都属于项目的一个具体子目,则该子公司在纸质中添加文件,否则就把文件加在项目的核心。

关于没有更新的档案——我想到的是“cvs Update:Updating foo”,你所指的产出是每个访问的存放处名录的最新印刷。 为了消除这种印刷版,将-q国旗带至CVS(该国旗在<>之前)。 更新指挥系统,如<编码>cvs -q Update -d。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...