خرید بک لینک

I'm trying to find all files under /mnt/Storage not under /mnt/Storage/.Snapshots. The following works:

find /mnt/Storage | egrep -v "^/mnt/Storage/.Snapshots"

But the following does not:

find /mnt/Storage -regextype posix-egrep -not -regex "/mnt/Storage/.Snapshots.*"

even though the two should, to best of my knowledge, be equivalent.

It also seems that removing the -not in the second expression resulted in files only under .Snapshots being listed, so it's almost like the regex is right but I'm using -not wrong... except I don't see how.

What grave error have I made with the second command? I'm actually trying to craft a better solution using -prune but I still don't understand why my attempt here doesn't work.

- - , .

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 2 اسفند 1394 ساعت: 18:35

صفحه بندی