Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

echo or cat into multiple files

# Use tee to read from standard input and write to standard output and files.
echo "hello" | tee -a file1 file2

or 

# can flip it around for heredoc: 
tee -a aaa bbb ccc << EOF contents ... EOF
Comment

PREVIOUS NEXT
Code Example
Shell :: git apply previous stash 
Shell :: connect to specific wifi device linux 
Shell :: install neovim ubuntu 
Shell :: ubuntu open file from terminal 
Shell :: installing gunicorn with anaconda 
Shell :: docker.service: Unit entered failed state. 
Shell :: git check current brach 
Shell :: How to install Apache 2 in Ubuntu? 
Shell :: bash loop lines in file 
Shell :: PowerShell remove object from array 
Shell :: ansible become sudo pawwsord 
Shell :: after checkout fatal: You are not currently on a branch. 
Shell :: how to revert back to previous commit in git 
Shell :: shared folder virtualbox ubuntu 
Shell :: install heroku cli on linux 
Shell :: unzip folder linux 
Shell :: git checkout new branch 
Shell :: bash script: replace . with : 
Shell :: how to install python on linux/terminal 
Shell :: create a zip file in linux 
Shell :: grep windows 
Shell :: git reset last commit 
Shell :: linux tar gz 
Shell :: install cmake debian 
Shell :: screen recorder for ubuntu 
Shell :: cordova run device 
Shell :: You have to install development tools first. 
Shell :: conda install open3d in specific environment 
Shell :: install x server wsl2 
Shell :: install apache on mac 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =