Using grep to match md5 hashes

前端 未结 4 714
独厮守ぢ
独厮守ぢ 2021-02-08 06:21

How can I match md5 hashes with the grep command?

In php I used this regular expression pattern in the past:

/^[0-9a-f]{32}$/i

But I t

4条回答
  •  长情又很酷
    2021-02-08 06:48

    Meh.

    #!/bin/sh
    while IFS=: read filename filesize hash
    do
      if [ -z "$hash" ]
      then
        echo "$filename"
      fi
    done < hashes.lst
    

提交回复
热议问题