I have a largish tex project that is separated into several tex files. Everytime I want to work on it I open emacs and manually C-x C-f
all the files that I want to work on.
I was wondering if there is a way to open files (from command line) from a file containing a list of filenames, something like
filelist.txt:
file1.tex file2.tex file3.tex
then do
cat files | emacs -nw
except that emacs doesn't support the command used as it doesn't like that stdin is reassigned.
any ideas?
Best Answer
Pass it through xargs instead:
xargs
takes text from stdin and passes it as arguments to the program specified. Piping thefiles
file into is causes it to call emacs something like: