X-Git-Url: https://git.llucax.com/mecon/scripts.git/blobdiff_plain/10f68acff0c99ea0e4fb347d5e070f05f2fd0bd3..fa98072ed1b6d30af6d93d04c953bacbe2eb6f90:/novedades/backup?ds=sidebyside diff --git a/novedades/backup b/novedades/backup index a9911a0..30aae43 100755 --- a/novedades/backup +++ b/novedades/backup @@ -13,7 +13,7 @@ targz="$dir"/`date +%Y%m%d`.tar.gz echo "Haciendo backup en $targz" files="" for f in `ls "$datos"`; do - nombre=`basename "$f" | awk -F\\. '{ print $1 }'` + nombre=`basename "$f" | awk -F- '{ print $1 }'` files="$files $nombre" done cd "$origen"