简体   繁体   English

文件目录中的XXD和Grep递归

[英]XXD and Grep recursively in a directory of files

I have a question, i know it is possible to perform XXD -u file | 我有一个问题,我知道可以执行XXD -u文件| grep "ABCD" however is it possible to perform XXD -u directory? grep“ ABCD”但是可以执行XXD -u目录吗? then grep the "ABCD"? 然后grep的“ ABCD”?

#!/bin/bash

FILES=/FILEPATH/*
for f in $FILES
do
   echo "PROCESSING $f FILES"
   echo "-------------------"
   XXD -u $f | grep ABCD
   echo "-------------------"
done

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM