Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

append to multiple files bash

# The last section is to prevent outputting to stdin as well

echo "Some info" | tee -a file1 file2 file3 | cat 1> /dev/null
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #append #multiple #files #bash
ADD COMMENT
Topic
Name
3+9 =