Skip to content

Instantly share code, notes, and snippets.

@yasugahira0810
Last active October 11, 2016 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasugahira0810/6299686527110c3292988cab97de5e22 to your computer and use it in GitHub Desktop.
Save yasugahira0810/6299686527110c3292988cab97de5e22 to your computer and use it in GitHub Desktop.
#!/bin/bash
fname=$1
cat ${fname} | while IFS= read line; do
if [ -n "${line}" ]; then
echo " ${line}"
else
echo " "
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment