Task: Counts lines in file /workspace/dir1/a.txt ignoring empty lines and lines with spaces only.
Command: awk '!/^[[:space:]]*$/{++x} END{print x}' /workspace/dir1/a.txt
Equivalent command: grep -v '^[[:space:]]*$' /workspace/dir1/a.txt | wc -l