Browse Source

linux

master
zeus 4 years ago
parent
commit
b15be67928
  1. 2
      hybrid-linux/find_and_grep.adoc

2
hybrid-linux/find_and_grep.adoc

@ -69,6 +69,7 @@ NOTE: This can be interpreted as +
TIP: Very powerful in bash scripts TIP: Very powerful in bash scripts
create a file test.sh create a file test.sh
.bash script .bash script
[source,bash] [source,bash]
---- ----
@ -77,6 +78,7 @@ STRING=$(find /etc -name "*.conf" -exec grep -Hns "conf" {} \;)
echo $STRING echo $STRING
---- ----
exec it exec it
.bash script .bash script
[source,bash] [source,bash]
---- ----

Loading…
Cancel
Save