Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei authored Mar 11, 2024
1 parent 63d4b0e commit ef37901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gsh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ if lastErr != nil {
}

capout => { ls }
println output.fields
echo output.fields

capout => { ls "-l" }
files := [file{flds[8], flds[4].int!} for e <- output.split("\n") if flds := e.fields; flds.len > 2]
println files
echo files

rmdir "testgsh", "testgsh2", "testgsh3"
```
Expand Down Expand Up @@ -150,7 +150,7 @@ For example:

```coffee
capout => { ls "-l" }
println output
echo output
```

Here is a possible output:
Expand Down

0 comments on commit ef37901

Please sign in to comment.