file.txt
contains:
aa=testing
sss=whoiam
bbb=findme
What command do I use to search for testing and print it?
Expected result:
# you search testing
|
You could use
The string "you search testing" is printed when the string "testing" is found somewhere in the file
Just change the variable Additional quesitions:
With this oneliner the value of aa is search too. The complete content of the file file.txt is gone trough.
Use this:
This searched for aa as variable name and then prints the value. The output od this would be:
|
|||||||||||||
|