If we need to grep for a particular word "cursor.execure" recursively with respect to current directory and all the subfolders do as shown below.
root@ubuntu:/var/www/cuckoo/cuckoo# grep -i "cursor.execute" -R .
./submit.py: cursor.execute("SELECT * FROM queue WHERE target
./submit.py: cursor.execute(sql)
./cuckoo/db.py: cursor.execute("CREATE TABLE queue (\n" \
./cuckoo/db.py: self._cursor.execute("SELECT * FROM queue " \
./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE
./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 1 WHE
./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE id = ./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 0 WHERE ./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE id ./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 0, "
root@ubuntu:/var/www/cuckoo/cuckoo#
To do MD5Sum recursively :-)
root@ubuntu:/var/www/cuckoo/cuckoo# grep -i "cursor.execute" -R .
./submit.py: cursor.execute("SELECT * FROM queue WHERE target
./submit.py: cursor.execute(sql)
./cuckoo/db.py: cursor.execute("CREATE TABLE queue (\n" \
./cuckoo/db.py: self._cursor.execute("SELECT * FROM queue " \
./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE
./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 1 WHE
./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE id = ./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 0 WHERE ./cuckoo/db.py: self._cursor.execute("SELECT id FROM queue WHERE id ./cuckoo/db.py: self._cursor.execute("UPDATE queue SET lock = 0, "
root@ubuntu:/var/www/cuckoo/cuckoo#
To do MD5Sum recursively :-)
find . -type f -print0 | xargs -0 md5sum
85d745532558a575c1809fa35ac50ff2 ./impress.js 402f032048a9f560a4b18010509583dc ./index.html 85d745532558a575c1809fa35ac50ff2 ./bala/impress.js
No comments:
Post a Comment