标签: command

男人grep | grep"color"没有结果

为什么我尝试使用此命令搜索grep手册中的颜色选项

man grep | grep "color"
Run Code Online (Sandbox Code Playgroud)

我没有结果,但是当我跑步时

man grep
Run Code Online (Sandbox Code Playgroud)

男人输出这个[已编辑]

 --colour=[when, --color=[when]]
         Mark up the matching text with the expression stored in GREP_COLOR environment variable.  The possible values of when can be `never', `always' or `auto'.
Run Code Online (Sandbox Code Playgroud)

unix bash grep command

2
推荐指数
1
解决办法
597
查看次数

如何在WPF中提供字符串文字值作为绑定

编辑:

我之前的问题也提到了命令,但正如下面的评论所指出的那样,它是不必要的并且增加了噪音.


这更像是一个XAML语法问题,所以它可能是微不足道的.我想知道如何将字符串文字作为WPF中绑定的值传递.

如果已经从XAML中的上下文中获知了该值,那么它的值是否可以直接分配给绑定,而不是使用路径和其他方法?如果是这样,在这种情况下语法是什么?

<MultiBinding.Bindings>
    <!-- First binding, a textbox  -->
    <Binding  RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type TextBox}}"/>
    <!-- Second binding, I want to pass a string as is, for instance, "Description" -->
    <!-- The proper syntax for the line below is what I am after -->
    <Binding Value="Description"/>
</MultiBinding.Bindings>
Run Code Online (Sandbox Code Playgroud)

string parameters wpf xaml command

2
推荐指数
1
解决办法
2634
查看次数

WebDeploy命令行工具跳过web.config文件

我希望webdeploy命令行命令跳过 - 删除/更新web.config文件和网站主机头更新.我怎么做.

当前命令行忽略任何跳过命令并更新绑定以反映非生产绑定.

deployment iis command msdeploy web

2
推荐指数
1
解决办法
2421
查看次数

如何使用RoutedUICommand?

我目前正在重构我的程序以使用MVVM.我现在尝试使用命令2天,但我找不到使用它们的好方法.
快捷方式只能与RoutedCommands和RoutedUICommands一起使用,必须在代码隐藏文件中定义CanExecute和Executed事件处理程序才能访问ui元素,从而降低了可重用性.
如果在viewmodel中定义了命令,则无法访问ui-elements.
2个例子来说明我在这里说的话:

  1. 我有一个DataGrid中的项目列表.当执行双击DataGrid时,应在另一个窗口中打开所选项目.如何在MouseDoubleClick事件上调用Command?
  2. ComboBox包含值列表.按钮打开一个新窗口,向该列表添加内容.窗口关闭后,应选择新值.
    我认为应该使用CommandTarget属性,但是如何使用RoutedUICommands呢?

c# wpf command mvvm icommand

2
推荐指数
1
解决办法
3521
查看次数

sed命令在多行搜索后插入多行字符串

我想在两行特定行之后将文本行插入另一个文本文件中.

在类似的东西之后插入

some text...
  example text
    (
    );
some text...
Run Code Online (Sandbox Code Playgroud)

我有一个文本文件(包含两行文本),我想在括号之间插入.

如果我尝试插入的文本文件包含类似于以下内容的内容

need this;
in between the parentheses;
Run Code Online (Sandbox Code Playgroud)

然后我希望结果看起来像这样

some text...
  example text
    (
     need this;
     in between the parentheses;
    );
some text...
Run Code Online (Sandbox Code Playgroud)

什么是最好的解决方案可以工作(不必是sed).

编辑澄清

在需要插入文本的部分之前还有其他开括号,例如

sometext...
sometext (sometext)....
sometext
  (
  );
  exampletext
    (
    );
sometext...
Run Code Online (Sandbox Code Playgroud)

所以,我认为"exampletext"需要引用然后查找括号.此外,它可能需要完全搜索"exampletext",因为文档中还有其他行带有"exampletextsometext ..."

完成此操作后,需要将文件添加到原始文件中.

linux bash shell command sed

2
推荐指数
1
解决办法
2337
查看次数

Centos 6 yum更新失败

尝试通过Putty以root身份记录的简单yum更新给了我:

---> Package python-paramiko.noarch 0:1.12.4-1.el7 will be an update
--> Processing Dependency: python(abi) = 2.7 for package: python-paramiko-1.124-1.el7.noarch
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Finished Dependency Resolution
Error: Package: cyrus-sasl-lib-2.1.23-15.el6.x86_64 (@base)
           Requires: libdb-4.7.so()(64bit)
           Removing: db4-4.7.25-18.el6_4.x86_64 (@base)
               libdb-4.7.so()(64bit)
           Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
               Not found
Error: Package: python-paramiko-1.12.4-1.el7.noarch (epel)
           Requires: python(abi) = 2.7
           Installed: python-2.6.6-52.el6.x86_64 (@updates)
               python(abi) = 2.6

 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Run Code Online (Sandbox Code Playgroud)

期望更长但是堆栈不能让我把所有东西都写成相同数量的文本......无论如何......我真的不明白为什么会出现这个冲突问题...任何人都可以指出至少我正确的方向?

编辑:如果我启动yum …

putty command centos rpm

2
推荐指数
1
解决办法
3761
查看次数

Excel 2007问题:预编程按钮突然无法正常工作

今天,我工作的公司使用的表格,突然出现了它的按钮问题.奇怪的是,它只会影响我非常确定的ActiveX命令按钮,而不会导致其他形状或下拉的问题.

问题.按钮无响应.单击时,它们不会访问代码并通过形状菜单进行检查,选择"查看代码"会导致它们打开开发人员菜单,而不是与之关联的代码.真正重要的问题是,由于某些原因,他们似乎已经开始同时失败了.服务器上的版本不再起作用(主副本),用户使用的副本(因破坏而臭名昭着)和我使用的版本(在我的本地计算机上).

有没有办法让他们重新将它们与正确的代码相关联,而不是删除它们完全重新制作它们,或者是否有可能有同样问题的人并找出解决方法?

我非常感谢任何建议或帮助 - 请注意:我99.9%确定问题不是基于代码的.

excel vba command button

2
推荐指数
1
解决办法
3万
查看次数

FFMPEG命令问题

我遇到了FFMPEG的问题.确切地说,我正试图从视频文件中生成许多"有意义的"缩略图.我在互联网上找到了这个命令:

ffmpeg -ss 3 -i input.mp4 -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr fps=fps=1/600 out%02d.jpg
Run Code Online (Sandbox Code Playgroud)

可悲的是,它对我来说不起作用,因为我得到了:

[NULL @ 0x86c2420] Unable to find a suitable output format for 'fps=fps=1/600'
fps=fps=1/600: Invalid argument
Run Code Online (Sandbox Code Playgroud)

我试过在-vf中包含"fps = fps = 1/600",这导致只生成一张图片.我究竟做错了什么?

编辑:

这是完整输出的示例:

$ ffmpeg -ss 3 -i video.ogg -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr fps=fps=1/600 out%02d.jpg
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 10 2015 23:26:13 with gcc 4.9.2 (GCC) 20141224 (prerelease)
  configuration: --prefix=/usr --disable-debug --disable-static …
Run Code Online (Sandbox Code Playgroud)

linux command ffmpeg transcoding

2
推荐指数
1
解决办法
1602
查看次数

鱼壳中带有花括号的Subversion命令

在Bash中,我可以输入以下命令:

svn log -r {2015-08-26}:HEAD
Run Code Online (Sandbox Code Playgroud)

从2015-08-26到最后提交HEAD。但是该命令在鱼壳中不起作用。然后我得到以下错误:

svn: E205000: Syntaxfehler in Revisionsparameter »2015-08-26:HEAD«
Run Code Online (Sandbox Code Playgroud)

如果我尝试:

svn log -r '\{'2015-08-26'\}':HEAD
Run Code Online (Sandbox Code Playgroud)

它也不起作用:

svn: E205000: Syntaxfehler in Revisionsparameter »\{2015-08-26\}:HEAD«
Run Code Online (Sandbox Code Playgroud)

如何在鱼壳中执行该命令?也许无需输入很多其他字符,例如'\'。

svn shell command fish

2
推荐指数
1
解决办法
309
查看次数

如何在vim函数中执行普通模式命令?

我正在编写vim函数以在c ++文件中插入一些文本,请参见以下函数:

function! InsertDebugInfo()                                                                      
     let i = line('.')                                                               
     call append(i+1, '#ifdef DEBUG')                                                
     call append(i+2, 'std::cout << ""  << std::endl;')                              
     call append(i+3, '#endif')                                                      
     call append(i+4, '')                                                            
     call cursor(i+3, 0)                                                             
endfunction    
Run Code Online (Sandbox Code Playgroud)

在正常模式下,我==用来重新缩进一条代码行。我的问题是如何==在上述函数中调用。此外,如何执行命令,例如2f"将光标移至第二个命令"。

vim command function

2
推荐指数
1
解决办法
1505
查看次数

标签 统计

command ×10

bash ×2

linux ×2

shell ×2

wpf ×2

button ×1

c# ×1

centos ×1

deployment ×1

excel ×1

ffmpeg ×1

fish ×1

function ×1

grep ×1

icommand ×1

iis ×1

msdeploy ×1

mvvm ×1

parameters ×1

putty ×1

rpm ×1

sed ×1

string ×1

svn ×1

transcoding ×1

unix ×1

vba ×1

vim ×1

web ×1

xaml ×1