Advertisement
Guest User

Untitled

a guest
Jun 30th, 2010
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "content-type: text/html"
  4. echo ""
  5. echo ""
  6. echo "<html>"
  7. echo "<head>"
  8. echo "<title>&Aacute;rea de Download</title>"
  9. echo "</head>"
  10. echo "<body>"
  11. echo "Listagem dos arquivos para download do diretório `pwd` - CPG"
  12. echo "=================================INÍCIO====================================="
  13.  
  14. for LS in *
  15. do
  16.     echo "<A HREF="nomedosite/$LS"></A>\n" |grep -v index.html
  17. done
  18.  
  19. echo "==================================FIM======================================"
  20. echo `date +%A" - "%d" de "%B" de "%G" às "%H":"%M`
  21.  
  22. echo "</body>"
  23. echo "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement