pick helps you pull out values from many types of text. You can get data from files or text formats like JSON, YAML, TOML, .env, HTTP headers, logfmt, CSV, and more. It works on your computer’s command line, making it easy to process and analyze data quickly.
To get pick on Windows, visit this page to download the program:
On this page, look for the latest Windows version or setup file. Save it to your computer, then open it to install. The install process should be straightforward. Follow the on-screen steps to finish.
After installing, you can use pick from the command line. Here’s how to open and use it:
- Open the Start menu and type cmd. Click Command Prompt to open it.
- Check if pick is installed by typing
pick --versionand pressing Enter. - If the version number shows, you’re ready to use pick.
pick lets you pull data from many types of text files or text streams. You tell pick what type of file or text you want to read, and what data to get.
Here are some simple examples:
If you have a JSON file called data.json, run:
pick .keyname data.json
This gets the value of "keyname" from the JSON file.
If you want a value from a CSV file called data.csv in the second column:
pick 2 data.csv
You can also filter or combine commands to get more complex results.
- Get data from configuration files like
.envor TOML. - Pull specific fields from JSON or YAML.
- Extract HTTP header values from logs.
- Read data from CSV files for spreadsheets.
- Parse logfmt text used in system logs.
pick uses patterns to select data. You specify the format, like JSON or CSV, and what to pull. The tool then shows you that data.
You can chain commands by piping data, like this:
type file.txt | pick .key
This reads file.txt and extracts the "key" value from JSON or similar text.
- Windows 10 or later
- 64-bit CPU
- 100 MB of free storage space
- Internet connection to download pick
Check the GitHub page regularly for new versions. Download each new version and install over the old one. This keeps pick working with the latest features and fixes.
If you see errors:
- Make sure you typed the command exactly.
- Confirm the file you want to use exists and is readable.
- Check your system meets requirements.
- Restart your command prompt and try again.
For more details on commands and formats, visit the GitHub page:
You can find more examples and help in the project files.
- Supports many data formats: JSON, YAML, TOML, CSV, logfmt, .env, HTTP headers.
- Simple command-line tool.
- Quick data extraction for text files.
- Can handle piped input and output.
- Works on Windows with minimal setup.
If you want to report issues or suggest improvements, use the GitHub Issues tab. Developers welcome clear problem descriptions and steps to reproduce.
You can also contribute by sharing code or examples as pull requests.