Answers for "printf in bash"

0

printf in bash

printf "$your_var1 $your_var2 $(tail -n -1 your.log | grep Word_to_grep ) \n" >> ../opt_done.txt 

# several things, 
# printf with \n new line
# $(tail -n -1 your.log | grep Word_to_grep )  --> is a command, will output whats comes in terminal
			(if final line of the document has "Normal" to grep it will grep, oherwise nothing 
# $your_var1 $your_var2 variables
# >> this is an appending,
Posted by: Guest on March-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language