Search Results

Search: Posts Made By: D351
2,008
Posted By TioTony
Hi D351, I think you simply forgot the...
Hi D351,
I think you simply forgot the "do". Try this:

#!/bin/bash
#This will create blank lyric files, as used by mocp, for all mp3s in a direcory

files=(ls *.mp3)
for song in $files...
2,008
Posted By RudiC
Some comments on your code snippet: files=(ls...
Some comments on your code snippet:
files=(ls *.mp3) # this will define & assign an array: (ls a.mp3 b.mp3 c.mp3 ...). You'd need to use it like an array in the for loop, then.
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy