diff --git a/engine-q/cool_oneliners/file_cat.nu b/engine-q/cool_oneliners/file_cat.nu new file mode 100644 index 0000000..9f03cd1 --- /dev/null +++ b/engine-q/cool_oneliners/file_cat.nu @@ -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