#!/bin/bash
passwd root <<EOF
123456
123456
EOF
echo "root:123456" | chpasswd
echo '123456' | passwd root --stdin
cat << EOF >a
123
234
345
456
EOF
cat >a <<EOF
123
234
345
456
EOF
cat a
#!/bin/bash