Closed gdevenyi closed 8 years ago
On Mon, Jun 09, 2014 at 08:28:43AM -0700, Gabriel A. Devenyi wrote:
The 05-Shell.md lesson includes details of colrm, which isn't available in gitbash, caused some confusion at Cornell when it worked for Mac/Linux users and not Windows.
msysGit has both awk and cut 1, which would be my choices for this sort of thing. I doubt msysGit has everything in POSIX, but I don't see a reason to reach outside of POSIX 2.
The easiest solution would be to show them:
history | cut -c 8-
using -c
to specify character positions, and 8-
to specify "8 to the end". That way we wouldn't have to talk about colrm
at all.
On Wed, Jun 11, 2014 at 06:11:51AM -0700, Greg Wilson wrote:
history | cut -c 8-
Sounds good to me. And we already use cut in 03-pipefilter.md, 05-script.md, and goostats.
The 05-Shell.md lesson includes details of colrm, which isn't available in gitbash, caused some confusion at Cornell when it worked for Mac/Linux users and not Windows.