Search results

  1. G

    Change working directory in shell script

    So I'm making a shell script that basically gets a file count in a directory and if that count exceeds x count then delete x count of files... It works great out of current directory but I need it to execute on specified directory defined in script. Currently it looks something like this...
  2. G

    Can I run ls with with multiple arguments

    I'm having a problem where I have to sort through our logs folder on one of our servers which has about 32mil log files on it. ls -l command by itself does not work, which is what I need to see the date of creation. I'm able to run ls -U | head -50 for example to show 50 files at a time but it...