Menu
  • HOME
  • TAGS

Make an online application to open txt file [closed]

javascript,jquery,html,file,readable

Try utilizing <input> element ; <textarea> element ; accept="text/plain" attribute at input element ; onchange event attached to input element ; FileReader() within onchange event to output uploaded text file to <textarea> element var input = document.getElementById("input"); var output = document.querySelector("[for=input]"); input.onchange = function(e) { var reader = new FileReader();...

Search only directories with permission -find (Bash 4.2)

bash,find,aix,readable

Just use your find /home/ -name 'core.20*' -mtime +7 -print 2>/dev/null When you want to skip dir's without permission, your script must somehow ask Unix for permission. This is exactly what find is doing: when the toplevel is closed, no time is spent on the tree beneath. The only cost...