소스 검색

Limit hexdump output

Alois Mahdal 10 년 전
부모
커밋
333bde5c54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      libexec/saturnin-clip

+ 1
- 1
libexec/saturnin-clip 파일 보기

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"