From b5a2ad5e0a733a5f4ea0e8b7aee2b3e1c3538fb1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 21 Jun 2018 11:30:38 +1000 Subject: [PATCH] Added shorter file creation syntax. Closes #22 --- README.md | 7 ++++--- manuscript/chapter4.txt | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0ed710d..a87e49c 100644 --- a/README.md +++ b/README.md @@ -916,11 +916,12 @@ Alternative to `touch`. ```shell # Shortest. -:> file +>file # Longer alternatives: -echo -n > file -printf '' > file +:>file +echo -n >file +printf '' >file ``` ## Extract lines between two markers diff --git a/manuscript/chapter4.txt b/manuscript/chapter4.txt index d2a397b..2cb872c 100644 --- a/manuscript/chapter4.txt +++ b/manuscript/chapter4.txt @@ -151,11 +151,12 @@ Alternative to `touch`. ```shell # Shortest. -:> file +>file # Longer alternatives: -echo -n > file -printf '' > file +:>file +echo -n >file +printf '' >file ``` ## Extract lines between two markers