Commit f43f8411 authored by Sergio Bruni's avatar Sergio Bruni
Browse files

m

parent 01978141
...@@ -72,7 +72,7 @@ find . -type f -name '*.[0-9][0-9][Dd].Z' -exec rename -v 's/(\w+).(\w+).(\w)$/\ ...@@ -72,7 +72,7 @@ find . -type f -name '*.[0-9][0-9][Dd].Z' -exec rename -v 's/(\w+).(\w+).(\w)$/\
#### come sopra ma i file hanno un ulterione punto in mezzo. tipo AAAA1990.12d.Z **come sopra ma i file hanno un ulteriore punto in mezzo. tipo AAAA1990.12d.Z**
``` ```
find . -type f -exec rename -v 's/(\w+\.\w+).(\w+)$/\L$1\E.$2/' {} \; find . -type f -exec rename -v 's/(\w+\.\w+).(\w+)$/\L$1\E.$2/' {} \;
...@@ -88,7 +88,7 @@ find . -type f ! -name '????[0-9][0-9][0-9][0-9].??d.Z' ...@@ -88,7 +88,7 @@ find . -type f ! -name '????[0-9][0-9][0-9][0-9].??d.Z'
Cerca i rinex con almeno una delle quattro lettere del marker in upper case **Cerca i rinex con almeno una delle quattro lettere del marker in upper case**
``` ```
nohup find . -type f \( -name '[A-Z]*' -o -name '?[A-Z]*' -o -name '??[A-Z]*' -o -name '???[A-Z]*' \) > find_upper.out 2>&1 & nohup find . -type f \( -name '[A-Z]*' -o -name '?[A-Z]*' -o -name '??[A-Z]*' -o -name '???[A-Z]*' \) > find_upper.out 2>&1 &
...@@ -276,9 +276,17 @@ where s.marker='TREV' and n.name='VENETO' ...@@ -276,9 +276,17 @@ where s.marker='TREV' and n.name='VENETO'
**sincronizza gnssgiving con bancadati. Prende i rinex nuovi o modificati (solo se diverso size), indipendentemente dall'ora di modifica. Non considera le cartelle vuote** **sincronizza gnssgiving con bancadati. Prende i rinex nuovi o modificati (solo se diverso size), indipendentemente dall'ora di modifica. Non considera le cartelle vuote ... **
``` ```
lftp -u anonymous,password -e "mirror --no-empty-dirs --ignore-time --include-glob coni* --no-perms --log=./out_2017 /OUTGOING/RINEX30/RING/2017/ /mnt/data/archive/rinex/CGPS/STAGING/RING/APPO/2017/;exit" bancadati2.gm.ingv.it lftp -u anonymous,password -e "mirror --no-empty-dirs --ignore-time --include-glob coni* --no-perms --log=./out_2017 /OUTGOING/RINEX30/RING/2017/ /mnt/data/archive/rinex/CGPS/STAGING/RING/APPO/2017/;exit" bancadati2.gm.ingv.it
``` ```
**Conta i rinex raggruppati per MARKER**
```
find -type f -exec basename {} \; | cut -c1-4 | perl -n -e 'chomp $_; if (defined $h{$_}) {$h{$_}+=1;} else {$h{$_}=1;} END {foreach $m (keys %h) {print("$m $h{$m}\n");}}'
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment