tee命令

tee /etc/apt/sources.list <<-'EOF'
xxxxx
EOF