1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

oneliner: combine two files into one

This oneliner combines two files of the same type into one.
I named it after the Unix utility for discoverability.

Thanks to @jonathandturner for the help on Discord!
This commit is contained in:
Eli Flanagan 2021-06-08 16:14:09 -04:00
parent c0829c518e
commit 6a664a2e12
No known key found for this signature in database
GPG key ID: 89A9465A259119BF

View file

@ -0,0 +1,3 @@
# Combine two files into one
# You can generate `a.json` with something like `range 1..5 | save a.json`
echo (open a.json) (open b.json) | save c.json