I'm currently trying to create a post-processing script that creates a filelist in the downloaded folder. SABnzbd is currently running on my QNAP NAS.
The script I tried looks like this:
Code: Select all
#!/bin/bash
cd $1
ls -A -R -g -p --group-directories-first > filelist.txt
What am I doing wrong? I am very new to Linux, so any help would be appreciated!