Skip to content

Instantly share code, notes, and snippets.

@alexandre-mbm
Last active October 11, 2015 21:21
Show Gist options
  • Select an option

  • Save alexandre-mbm/2f216dfb3e5eed8f23f1 to your computer and use it in GitHub Desktop.

Select an option

Save alexandre-mbm/2f216dfb3e5eed8f23f1 to your computer and use it in GitHub Desktop.
Download do curso de Shell Script montado por Júlio Neves e publicado na Linux Magazine
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM01_shellscript.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM02_shellscript2.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM03_shellscript3.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM04_shellscript4.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM05_shellscript5.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM06_shellscript6.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM07_shellscript7.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM08_shellscript8.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM09_shellscript9.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM10_shellscript10.pdf
http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/LM11_shellscript11.pdf
#!/bin/bash
URL="http://www.linuxnewmedia.com.br/images/uploads/pdf_aberto/"
OUT=
for N in {1..11}; do
F=$(printf %02d $N)
if [ $N -eq 1 ]; then
OUT="${URL}LM${F}_shellscript.pdf"
else
OUT="${URL}LM${F}_shellscript${N}.pdf"
fi
echo "$OUT"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment