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

Merge pull request #141 from nushell/file_cat

port over to engine-q the script file_cat.nu
This commit is contained in:
Michael Angerman 2022-02-09 20:35:28 -08:00 committed by GitHub
commit 4b4b4662ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,10 @@
# Combine two files into one
def create_files [] {
[0,1,2,3] | range 0..3 | save a.json
[4,5,6,7] | range 0..3 | save b.json
}
create_files
echo (open a.json) (open b.json) | save c.json
open c.json | flatten