Gracias Resolví con eso

El 02/10/2020 a las 04:23 p. m., Jose J. Rodriguez escribió:
On Fri, Oct 2, 2020 at 2:39 PM Marcelino Bacerio Fernández
<t...@alquitex.co.cu> wrote:
Hola lista

Tengo un problema tengo un script así:


#!/bin/bash
ano=2020
i=1
file="MiArchivo$ano-exe$i_0_0.pdf"
echo $file

y me sale

      MiArchivo2020-exe.pdf

y debe ser

      MiArchivo2020-exe1_0_0.pdf

como debo hacer para que me salga


file="myfile"$ano"-exe"$i"_0_0.pdf"

Saludos,
Joe1962
_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

--
__________________________________________________________
    ╔════════════════════════════════════════════════╗
    ║       Marcelino Bacerio Fernández (Tito)       ║
    ║Administrador de Red C de Servicios Informáticos║
    ║ Empresa Textil Rubén Martínez Villena Alquitex ║
    ║          email: t...@alquitex.co.cu            ║
    ║        Teléfonos: 47 41 8147 y 47 41 8102      ║
    ╚════════════════════════════════════════════════╝
        ╔════════════════════════════════════════╗
________║                                        ║________
\       ║    ◊ "Dios es Amor y Él te ama" ◊      ║       /
 \      ║                            Juan 3:16   ║      /
 /      ╚════════════════════════════════════════╝      \
/__________)                                  (__________\

_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

Responder a