Skip to content

Instantly share code, notes, and snippets.

@jnbdz
Created March 3, 2024 19:24
Show Gist options
  • Save jnbdz/dede25b808763c1ca2c7fc5a68391850 to your computer and use it in GitHub Desktop.
Save jnbdz/dede25b808763c1ca2c7fc5a68391850 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
outputFile="config/manab_en.csv"
# Convert CSV to a simpler format and use fzf for searching
awk -F',' '{gsub(/"/, "", $1); gsub(/"/, "", $2); printf "%-15s %s\n", $1, $2}' "$outputFile" | fzf --ansi --preview-window=hidden:wrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment