Jerry Isdale
Published

Shell Scripts From Hackster on Raspberry Pi

Shell scripts as Code Attachments on Hackster seem to get munged when downloaded and xfer to Pi. We show work around.

BeginnerProtip6 minutes3,026
Shell Scripts From Hackster on Raspberry Pi

Things used in this project

Hardware components

Raspberry Pi Zero Wireless
Raspberry Pi Zero Wireless
×1

Software apps and online services

Apple OSX
Hackster.io
dos2unix

Story

Read more

Code

myTestScript.sh

SH
Shell script to illustrate name munging and CR NL issue and work around
#!/bin/bash
# test script to show name munging and crnl on Hackster.io
# the verbose flag can be turned on or off
# set -v
echo "This is a simple test bash shell script"
date
echo "It should demonstrate the issue with name munging"
echo "and crnl when downloading and copy to mac/raspberry pi"
ls
echo "the dos2unix tool fixes it"

Credits

Jerry Isdale

Jerry Isdale

2 projects • 2 followers
35+yrs software engineering in bleeding edge animation, multimedia, human factors. Also dabble in welding, leather, woodwork, 3d printing...

Comments