From b7d25aec1daf8a71463ddf5826fb6e1d7c5bdd09 Mon Sep 17 00:00:00 2001 From: stuff-and-nonsense Date: Fri, 10 Apr 2020 01:59:19 +0200 Subject: [PATCH] Typo --- SC2012.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2012.md b/SC2012.md index c7fe5f0..7b8e763 100644 --- a/SC2012.md +++ b/SC2012.md @@ -92,7 +92,7 @@ $ find "$theDir" -maxdepth 1 ! -name "$(basename $theDir)" #### All the other info -If trying to parse out any other fields, first see whether `stat` (GNU, OS X, FreeBSD) or `find -printf` (GNU) can give you the data you want directly. When trying to determine file size, try: `wc -c`. This is more portable as `wc` is a mandatory unix command, unlike `stat` and `find -prinf`. It may be slower as unoptimized `wc -c` may read the entire file rather than just checking its properties. On some systems, `wc` adds whitespace to the file size which can be removed by double expansion: `$(( $(wc -c < "filename") )) ` +If trying to parse out any other fields, first see whether `stat` (GNU, OS X, FreeBSD) or `find -printf` (GNU) can give you the data you want directly. When trying to determine file size, try: `wc -c`. This is more portable as `wc` is a mandatory unix command, unlike `stat` and `find -prinf`. It may be slower as unoptimized `wc -c` may read the entire file rather than just checking its properties. On some systems, `wc -c` adds whitespace to the file size which can be trimmed by double expansion: `$(( $(wc -c < "filename") )) ` ### Exceptions: