From 0883e763461b0680ddf0dfb2d6f2d021c6e58313 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Thu, 11 Sep 2014 19:09:03 +0200 Subject: [PATCH] Shorten a line, fix strange highlighting of $. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae08bed..28e9e45 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A Swift module for shell scripting. Launch shell commands with `run("command")`. The output is a readable stream which you can `read()`, `readSome()` (read in parts, for large amounts of text) or split into `lines()`. For in-line commands you can use `$("command")`. -```swift +``` #!/usr/bin/env swiftshell import SwiftShell @@ -19,7 +19,7 @@ print( "The time and date is " + $("date") ) #### Pipe several commands together ```swift -run("echo this is piped to the next command") |> run("wc -w") |> standardoutput +run("echo piped to the next command") |> run("wc -w") |> standardoutput ``` #### Read a file line by line