[SOLVED]Question about script
I want to write a shell script contains python one.
So,the result of python one is flv file. I want the path of this is copied into a enviroment variable that i have to pass as a flag argument of another program (to convert into mp3). To individuate the result of python script I thought to use (in PWD) Code:
ls | grep -E '^.*mp3$' I hope to b clear. Thanks!!:hattip: |
Code:
VAR=$(ls | grep -E '^.*mp3$') Code:
MP3LIST=$(ls | grep -E '^.*mp3$') |
You can get the same results w/
Code:
ls *mp3 HTH Forrest |
Actually, you don't even need the ls. Just:
Code:
MP3LIST=*mp3 Forrest |
Ahahahah!!
It was so simple! Ahhh, a lot of things about linux I have to learn! ahahah Thanks to everybody!! |
All times are GMT -5. The time now is 02:46 PM. |