LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what does this script do? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-this-script-do-877516/)

alpha_b_gamma 04-27-2011 11:14 PM

what does this script do?
 
echo "subject, variable1, var2, var3, var4" > test.csv

for file in file*_new.txt; do
echo `tail -1 $file` >> test.csv

done

grail 04-27-2011 11:22 PM

Firstly, please use [code][/code] tags when showing code for legibility and to keep indentation.

Second, maybe tell us where you are getting lost?

Is there a particular part you are not following?

Nylex 04-27-2011 11:31 PM

Your other thread suggests you don't know much about shell scripting. If you want to learn, I'd suggest reading this.


All times are GMT -5. The time now is 12:12 AM.