Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed prepend to all files

sed -i '1 iuse my_db' backup/*.sql
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sed #prepend #files
ADD COMMENT
Topic
Name
9+9 =