作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
test1.txt echo "\$foobar" > test2.txt echo "\$\$foobar"-6ren">
考虑一个包含(仅)通过以下方式获得的 3 个文件的目录:
echo "foobar" > test1.txt
echo "\$foobar" > test2.txt
echo "\$\$foobar" > test3.txt
foobar
、
$foobar
、
$$foobar
)。
grep
操作说明:
grep -l -r --include "*.txt" "\\$\\$" .
$ grep -l -r --include "*.txt" "\\$\\$" .
./test3.txt
doubledollars:
echo "Here are files containing double dollars:";\
grep -l -r --include "*.txt" "\\$\\$" . ;\
printf "\n";\
$ make doubledollars
echo "Here are files containing double dollars:";\
grep -l -r --include "*.txt" "\\\ . ;\
printf "\n";\
/bin/sh: -c: ligne 2: unexpected EOF while looking for matching `"'
/bin/sh: -c: ligne 3: syntax error: unexpected end of file
makefile:2: recipe for target 'doubledollars' failed
make: *** [doubledollars] Error 1
最佳答案
与以下 Makefile
a:
echo '$$$$'
make a
给
$$
grep -l -r -F --include *.txt '$$' .
关于makefile - 如何在makefile中逃避双美元?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33873789/
我在保持 MySQL 查询的直接性方面非常糟糕,但除此之外,我还有一个查询用于某些数据输入,但不是全部。我的猜测是引号在它们应该在的地方被转义了。 我同时转义了整个查询字符串。这是不好的做法还是真的很
我有几个部分有 CSS 问题。第一部分是我需要一个绝对定位的 :after 元素在固定位置元素上方可见。第二部分是我需要能够有一个模式作为将覆盖整个屏幕的固定元素的子元素。这是我的应用程序的简化版本。
嗨,我已经安装了 Pry 来进行一些很棒的调试,并且之前它可以工作,但是当我使用“下一步”进入代码时,出现以下错误: SyntaxError: (eval):2: Can't escape from
我需要在这里检查一些东西,我知道他们用一些代码过滤掉了输入,因为输入是在一行代码中获得的,这里我是在获取代码后按顺序完成的,这也可以接受吗?或者我是否必须找出某种方法来过滤和转义一行中的数据,同时获取
我有一个监控应用程序 Zabbix 代理,它允许我运行任意命令/脚本并获取返回值。代理配置了超时,任何超过超时的命令都将被终止。 对于运行的每个命令,它首先通过 alarm(timeout) 设置超时
我是一名优秀的程序员,十分优秀!