Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] grep, sed, and cat - oh my! [SOLVED]
- Date: Fri, 17 Sep 2010 11:14:59 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] grep, sed, and cat - oh my! [SOLVED]
- References: <4C924ACE.9000707@example.com> <20100916170709.GI2124@example.com> <20100916215027.GA23445@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7
Daniel, Nicolas, Mattia, Thank you guys so much for responding!After a little experimentation, I ended up with a bit of a combination of your suggested edits. This is what I have now:For the combination of Javascript files: cat $( find $DIR -type f -name '*.js' ) > $DIR/all.js For editing the line in the HTML files:find $DIR -type f -name '*.html' -exec sed -i 's/.*<script type="text\/javascript" charset="utf-8" src="javascript\/includes.js"><\/script>.*/<script type="text\/javascript" charset="utf-8" src="all-min.js"><\/script>/g' {} \;Works like a charm! Your time and expertise is much appreciated! -- Dave M G
- Follow-Ups:
- References:
- [tlug] grep, sed, and cat - oh my!
- From: Dave M G
- Re: [tlug] grep, sed, and cat - oh my!
- From: Nicolas Limare
- Re: [tlug] grep, sed, and cat - oh my!
- From: Mattia Dongili
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] grep, sed, and cat - oh my!
- Next by Date: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- Previous by thread: Re: [tlug] grep, sed, and cat - oh my!
- Next by thread: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links