Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash printf format

printf "
 %20s 	 %d " $BNAME $BEHIND
Comment

printf @ bash

printf "My brother %s is %d years old.
" Prakash 21
Comment

printf in bash

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

# several things, 
# printf with 
 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,
Comment

PREVIOUS NEXT
Code Example
Shell :: unarchive tar acrhive 
Shell :: Cannot find cairo.h! Please install cairo 
Shell :: install kazam screencaster ubuntu 
Shell :: batch file 
Shell :: install nginx ubuntu 
Shell :: making a service provider in laravel 
Shell :: password generator bash 
Shell :: git diff of a file between two commits 
Shell :: Is the docker daemon running? 
Shell :: how to uninstall npm package 
Shell :: can not ping github 
Shell :: reset gpg passphrase 
Shell :: sh increment variable 
Shell :: add username password git 
Shell :: wslconfig example 
Shell :: Install Strimio on ubuntu 
Shell :: parent branch 
Shell :: mkdir rm folder 
Shell :: how to remove large file from github repo history 
Shell :: restart odoo service ubuntu 
Shell :: git pull if exist and clone 
Shell :: install nix macos 
Shell :: tail journalctl last 100 lines 
Shell :: install microsoft edge terminal 
Shell :: sudo apt-get dbeaver 
Shell :: reboot with systemctl command 
Shell :: create dummy file windows 
Shell :: bash not equal 
Shell :: how to install cmake ninja 
Shell :: echo venv/ .gitignore 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =