swcarpentry / DEPRECATED-bc

DEPRECATED: This repository is now frozen - please see individual lesson repositories.
Other
299 stars 383 forks source link

Novice Lessons 05-Shell.md, "colrm" not available in windows gitbash #534

Closed gdevenyi closed 8 years ago

gdevenyi commented 10 years ago

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.

wking commented 10 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.

gvwilson commented 10 years ago

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.

wking commented 10 years ago

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.