Browse Source

linux

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

4
hybrid-linux/find_and_grep.adoc

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

Loading…
Cancel
Save