From f4302fbf0a1f3b8a37114c9dee83269a3249ff88 Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 12 Oct 2020 22:59:40 +0300 Subject: [PATCH] cut --- cut/1_Cutting_Column/codeanswer | 2 +- cut/1_Cutting_Column/codehelp | 2 +- cut/1_Cutting_Column/q-info | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cut/1_Cutting_Column/codeanswer b/cut/1_Cutting_Column/codeanswer index 4169906..31347ea 100644 --- a/cut/1_Cutting_Column/codeanswer +++ b/cut/1_Cutting_Column/codeanswer @@ -1 +1 @@ -grep "Jordan" $LLO_DATAFILE | cut -c 8- | head -5 +grep "Jordan" $LLO_DATAFILE | cut -c -8 | head -5 diff --git a/cut/1_Cutting_Column/codehelp b/cut/1_Cutting_Column/codehelp index c509f59..62cb0e8 100644 --- a/cut/1_Cutting_Column/codehelp +++ b/cut/1_Cutting_Column/codehelp @@ -1,2 +1,2 @@ --b It uses a special form: selecting bytes upto the end of the line +position is specified and the ending position is omitted. diff --git a/cut/1_Cutting_Column/q-info b/cut/1_Cutting_Column/q-info index 0b8a085..97dbc42 100644 --- a/cut/1_Cutting_Column/q-info +++ b/cut/1_Cutting_Column/q-info @@ -3,7 +3,7 @@ Try to run [source,sh] ---- -cut -c 3- $LLO_DATAFILE | head -5 +cut -c -3 $LLO_DATAFILE | head -5 ---- and see the Results!