Skip to content

Instantly share code, notes, and snippets.

@charmparticle
charmparticle / xidel -> xpe behavior
Created May 11, 2025 23:42
xidel is faster than xpe, so I use this instead
#!/bin/bash
show_help(){
echo "invocation:
$0 <file> <xpath>
or
cat <file> | $0 <xpath>
examples:
cat file.html | $0 '//a/@href'
$0 '//a/@href' file.html
$0 file.html '//a/@href'