I'm writing a script to get all files within a folder(including sub-folder): #!/bin/bash function loop() { files=`ls -1Fd $1` echo. Loop through all files in a. Shellscript Looping Through All Files in a Folder. Only files in that directory? Multiple elements instead of one in bash script for loop.
So I'm trying to do a Shell Script (.sh) on my mac, but I'm having a hard time. So for each file I would like to make a copy of it and convert it into another type (.less to.css). I know how to do that already: lessc fileToConvert. Vista Black Screen With Mouse Cursor Only there. less destinationOfConvertedFile.css now my problem is to integrate that into a loop (loop all the files of a folder).
I tried that but nothing seems to work: alias proj='cd /Users/maxwell/Documents/WebStorm' for /D /r%%G in * DO Echo We found%%G I tried that as a test, but even that is not working.