-
amber ./test.ab 5| } |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Well I am also trying to do a similar thing |
Beta Was this translation helpful? Give feedback.
-
@flyisland @firatkucuk You can use the experimental standard library function to get Here is a minimal example: import { lines } from "std"
loop index, file in lines(unsafe $ls -a$) {
echo "{index}: {file}"
} Here is the updated version of this code: import { lines } from "std"
let base_dir="/tmp"
let zip_files = $ls {base_dir}/*.zip$ failed {
echo "It seems that the '{base_dir}' does not exist"
}
loop file in lines(zip_files) {
echo "Extracting {file}"
} |
Beta Was this translation helpful? Give feedback.
@flyisland @firatkucuk You can use the experimental standard library function to get
lines
out of the output. The standard library will be documented soon once we make sure it's stable enough. It should be ready in under a month.Here is a minimal example:
Here is the updated version of this code: