awk/-F
awk
-F— field separator flag-Fsets the field separator (FS) used to split each input line into fields.- My Note by default the field separator is any whitespace (space or tab chars).
awk -Fis useful if you need to customize that some more. Syntax
How it works
Common examples
Example: filter only mapped Obsidian hotkeys
- Obsidian/Q/Using the Obsidian CLI, what one-liner filters obsidian hotkeys to show only actually-mapped commands?
obsidian hotkeysoutputs tab-separated lines — command ID in$1, key binding in$2(empty if unmapped).-F'\t'splits on tab;$2as a condition passes only lines where the second field is non-empty: