Open gsharp opened 9 years ago
open terminal and go into a directory:
cd ~/Desktop
get a list of files:
ls
using one line, do the ls and parse the output of ls into this format:
files=file1,file2,file3….etc
and save the output to a file called
files.txt
You should be able to test your result with:
cat files.txt
https://gist.github.com/gsharp/9d1cfe60789a5cc8504c
ls | tr '\n' ',' | sed 's/^/files=/' | sed '$s/,$//' > hack.txt; cat hack.txt
bad ass!
using one line, parse lines of output to a properties file format
open terminal and go into a directory:
get a list of files:
using one line, do the ls and parse the output of ls into this format:
and save the output to a file called
rules:
You should be able to test your result with:
answer is here when you want it:
https://gist.github.com/gsharp/9d1cfe60789a5cc8504c