On Mon, 08 Jul 2019 16:59:47 -0400
Osmany Oconor Estrada <osmany.oco...@gritodebaire.icrt.cu> wrote:

> No funciona
> cat borrar_archivos.sh 
> #!/bin/bash
> 
> for file in 'cat $no_coincide.txt';do
>    echo "borrando $file"
>    rm -rf $file
> done
> 
> exit 0
> 
> la salida 
> borrando cat $no_coincide.txt
> 

Hola. Me funciono escribiendolo asi:

#!/bin/bash
 
 for file in $(cat no_coincide.txt);do
    echo "borrando $file"
    rm "$file"
 done
 

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

Responder a