Selaa lähdekoodia

Limit hexdump output

Alois Mahdal 10 vuotta sitten
vanhempi
commit
333bde5c54
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      libexec/saturnin-clip

+ 1
- 1
libexec/saturnin-clip Näytä tiedosto

50
                     hint=$(head -c 80 $name | tr '\n' '↵')
50
                     hint=$(head -c 80 $name | tr '\n' '↵')
51
                     ;;
51
                     ;;
52
                 *)
52
                 *)
53
-                    hint=$(head -c 16 $name | hexdump -C)
53
+                    hint=$(head -c 16 $name | hexdump -C | head -1)
54
                     ;;
54
                     ;;
55
             esac
55
             esac
56
             echos "$(basename $name) || $ft || $hint"
56
             echos "$(basename $name) || $ft || $hint"