xq
structured-text-tools
Our great sponsors
xq | structured-text-tools | |
---|---|---|
6 | 13 | |
753 | 6,870 | |
- | - | |
8.1 | 8.1 | |
14 days ago | 25 days ago | |
Go | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xq
-
Build an Open Source Project: Behind the Scenes
Some time ago, I started a project called "xq", which is a command-line XML and HTML beautifier and content extractor written in Go. Using this project as an example, I want to show what I did to make it a little bit more discoverable and usable by other people.
- November 15-19, 2022 FLiP Stack Weekly
- Show HN: Xq ā command-line XML and HTML beautifier and content extractor
-
xq: command-line XML beautifier and content extractor (written in Go)
Thank you for highlighting the issue! I'll take a look. See https://github.com/sibprogrammer/xq/issues/1 for the reference.
structured-text-tools
- Command line tools for manipulating structured text data
-
creating a text file in Linux
This works well in scripts and logs of all the commands you need to do to reproduce the current state of the system from a scratch install. Also can be used with diff -u and patch, sed, perl, and awk oneliners and structured text tools. You can also capture most of the commands using sudo logging feature but it won't capture the here documents. But for modest size files you can use newlines in echo commands. Note that commands which use redrection should use something like ~~~~ sudo bash -c "echo 'foo' >>file.txt" ~~~~ instead of "sudo echo foo >>file.txt" or "echo foo | sudo tee -a file.txt
-
Using Commandline to Process CSV Files
TFA is about how to handle csv files with awk. This might be useful in straightforward cases.
For all others Iād recommend to have a look at
https://github.com/dbohdan/structured-text-tools
which lists tools to handle structure text formats
-
Combine multiple files
in general, I'd pick something from https://github.com/dbohdan/structured-text-tools
- Show HN: Xq ā command-line XML and HTML beautifier and content extractor
- structured-text-tools: A list of command line tools for manipulating structured text data
- A list of command line tools for manipulating structured text data
-
What is your favourite Linux backup software and why?
Also, here is a list of structured text tools. You may find some tools there that are helpful in editing configuration files from the command line. Or you can use "diff -u" to create a patch file (you need to save the patch files along with sudo.log) to recreate. Also, use sfdisk --dump and sfdisk --backup to save partition information in a form that can be used to recreate backups.
What are some alternatives?
go-xmldom - XML DOM processing for Golang, supports xpath query
yq - yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
xpath - XPath package for Golang, supports HTML, XML, JSON document query.
tsv-utils - eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
pulsar-io-cloud-storage - Cloud Storage Connector integrates Apache Pulsar with cloud storage.
python-benedict - :blue_book: dict subclass with keylist/keypath support, built-in I/O operations (base64, csv, html, ini, json, pickle, plist, query-string, toml, xls, xml, yaml), s3 support and many utilities.
jsonquery - JSON xpath query for Go. Golang XPath query for JSON query.
concise-encoding - The secure data format for a modern world
wa-tunnel - Tunneling Internet traffic over Whatsapp
datasette - An open source multi-tool for exploring and publishing data
spring-pulsar - Spring Friendly Abstractions for Apache Pulsar
awesome-cli-apps - š„ š š¹ š A curated list of command line apps