Need a favor from you unix guys/gals

anonmouseuser

Senior member
Jun 25, 2002
288
0
0
I need a quick favor from you folks. I have about 150 txt files and I need it to be converted into one master copy. I dug around for shareware apps that can do this but most of them have a 25-50 file restriction.

I know that this can be done via a batch file in win but I don't really want to spend time learing how to do this one time thing. Help is greatly appreciated. Please let me know if you can help me out and I will send over a rar.

Thanks. :)
 

Isocene

Senior member
Jan 4, 2001
694
0
71
for x in `ls`
do
cat $x >> master.txt
echo "*****************************" >> master.txt
done


:)
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
unix? Just need to combine them all into one file? This should work:

stick all the .txt files into a directory (say concat/)
make a file called output in concat

cat concat/*.txt >> concat/output

That should do it unless I'm a retard.
 

anonmouseuser

Senior member
Jun 25, 2002
288
0
0
BTW, I don't have access to a unix box where I am sitting. I should have probably mentioned this in my OP. :p
 

Jassi

Diamond Member
Sep 8, 2004
3,296
0
0
Do you have access to matlab? I used to do this all the time for profs at my old school and its mondo easy.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Originally posted by: anonmouseuser
BTW, I don't have access to a unix box where I am sitting. I should have probably mentioned this in my OP. :p

right click/new/text document

double click .txt1 <ctrl><a> <ctrl> <c>
click in new text document <end> <ctrl> <v>
double click .txt2 <ctrl><a> <ctrl> <c>
click in new text document <end> <ctrl> <v>
...
 

anonmouseuser

Senior member
Jun 25, 2002
288
0
0
Originally posted by: silverpig
Originally posted by: anonmouseuser
BTW, I don't have access to a unix box where I am sitting. I should have probably mentioned this in my OP. :p

right click/new/text document

double click .txt1 <ctrl><a> <ctrl> <c>
click in new text document <end> <ctrl> <v>
double click .txt2 <ctrl><a> <ctrl> <c>
click in new text document <end> <ctrl> <v>
...

Clever. =]

 

anonmouseuser

Senior member
Jun 25, 2002
288
0
0
Originally posted by: gopunk
Originally posted by: anonmouseuser
BTW, I don't have access to a unix box where I am sitting. I should have probably mentioned this in my OP. :p

er... i'm confused then, why did you ask for help from unix people?

Because I wanted someone with unix to do it for me.