I was helped out today with a command, but it doesn't seem to be working. This is the command:
find /home/me/download/ -type f -name "*.rm" -exec ffmpeg -i {} -sameq {}.mp3 && rm {}\;
The shell returns
find: missing …
I want to say output lines 5 - 10 of a file, as arguments passed in.
How could I use head and tail to do this?
where firstline = $2 and lastline = $3 and filename = $1.
Running it should look like this:
./lines.sh filename firstline …
What is the simplest way to remove a trailing slash from each parameter in the '$@' array, so that rsync copies the directories by name?
rsync -a --exclude='*~' "$@" "$dir"
The title has been changed for clarification. To …