From d4f52ee5a7fcdc9413a91667f595d77a883e6430 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Sun, 23 Mar 2025 11:46:02 +1100 Subject: [PATCH] Make grep compatible with BSD/MacOS --- zfs-inplace-rebalancing.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zfs-inplace-rebalancing.sh b/zfs-inplace-rebalancing.sh index ee9af28..aa3ee8d 100755 --- a/zfs-inplace-rebalancing.sh +++ b/zfs-inplace-rebalancing.sh @@ -323,7 +323,7 @@ if [ "$debug_flag" = true ]; then fi # Count number of inode groups -file_count=$(grep -cvP '^\t' grouped_inodes.txt) +file_count=$(grep -c '^\w' grouped_inodes.txt) color_echo "$Cyan" " Number of files to process: ${file_count}"