Cómo usar catgt;test1lt;lt;EOF en el shell para no generar la variable EOF al escribir un archivo
1. cat gt; test1 lt; "EOF" es crear un archivo, ingresa EOF y listo. Por ejemplo
cat gt; test1.txt lt; "EOF"
hola mundo
EOF
2. usted Si desea utilizar otros caracteres para reemplazar EOF, no necesita ingresar EOF al final, por ejemplo
cat gt; test2.txt lt !
hola mundo;
!
3. Ejemplo de script: cat a.sh
#!/bin/sh
cat gt ; test3.txt lt; x
p>hola mundo
x