Combine & sort multiple csv files ⇒ one csv file
Aug 10, 2020 08:30 · 21 words · 1 minute read
cat *.csv | sort --numeric-sort --key=2 --field-separator=, > total-sorted.csv
You need to remove the redundant header lines manually afterwards.
Via
- You are in control
- My Favorite Shortcuts for VS Code
- Customizing my shell: From bash to zsh to fish
- JSON5: JSON with comments (and more!)
- jq: Analyzing JSON data on the command line
- Get Total Directory Size via Command Line
- Changing DNS server for Huawei LTE router
- Notes on Job & Career Development
- Adding full-text search to a static site (= no backend needed)
- Generating a random string on Linux & macOS