top of page
  • Writer's pictureJatin Madaan

Tee command in unix to add a string in multiple files at once .



If we need to add a particular string in multiple files at once then we can use tee command.


Eg - Let's say we need to add a date in 4 dates files at once then we would run below command :

echo "03-Apr-2019" | tee date*.txt


This will add 3rd april in all date*.txt files .







6 views0 comments

Comments


bottom of page