This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat popular_searches.json | jq '[.[] | {search} | map(select(length >= 4)) | .[0] | select(. != null)]' > popular_searches_len_gte_4.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am johnniehard on github. | |
| * I am johnniehard (https://keybase.io/johnniehard) on keybase. | |
| * I have a public key ASDjD47Af3YTeb84-b-55Ft4ssJjeXpP7641KEAAJUaXkAo | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import parse, { Options } from "csv-parse"; | |
| export function parseAsync(csv: string, options: Options) { | |
| return new Promise<any[]>((resolve, reject) => { | |
| parse(csv, options, (err, output) => { | |
| if (err) { | |
| return reject(err) | |
| } | |
| resolve(output) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . | grep -F -f filelist.txt | xargs cp -t /targetdir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| find . -name '*.wav' -print0 | xargs -I{} --null cp -u {} ../target_folder |
OlderNewer