Push28

file checkbox generator

Nov 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. rm code.html
  2. touch code.html
  3. echo "" > code.html
  4. ls *.zip > flist #change the zip here for the extention you want to generate
  5. ls *.zip > nlist #change the zip here for the extention you want to generate
  6. touch partlist
  7. sed -i -e 's/^/<tr><td><b><font face="Palatino Linotype" size="1" color="#FFFFFF"><span style="font-size: 7pt"><font size="1"<spanstyle="font-size: 9pt"><input class="chk" type="checkbox" name="roms[]" value="/' flist
  8. sed -i -e 's#$#"/></span></font></span></font></b><font face="Palatino Linotype" style="font-size: 9pt">#' flist
  9. sed -i 's/....$//' nlist
  10. paste -d "" flist nlist > partlist
  11. sed -i -e 's#$#</font></td><br></tr>#' partlist
  12. rm nlist
  13. rm flist
  14. mv partlist code.html
  15. sed  -i '1i <!-- ROM DATA START -->' code.html
  16. echo '<!-- ROM DATA END -->' >> code.html
Add Comment
Please, Sign In to add comment