This should be a simple task ... !
I have a directory with a number of html files. Each one has a div called for a class called crumb
. I want to split the file into two on crumb
. Later, I'll concatenate the second part of the split file with a new beginning part.
So I tried this, to split all the html files - actually two files called news.html
and about.html
for the moment - on the pattern crumb
:
find *.html -exec csplit - /crumb/ {} \;
But I have this response:
csplit: ‘about.html’: invalid pattern
csplit: ‘news.html’: invalid pattern
Why are the file names are being interpreted as a pattern?