This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Including only a part of an external source code


Yann Dirson <ydirson@fr.alcove.com> writes:

> file-18-24: file
> 	tail +18 $< | head -6 > $@
> 
> (untested, there may be one-off bugs in this code)

Using 'sed' might be more straight-forward here, e.g., 

     sed -ne '3,23p;' $< > $@

That prints lines 3 thru 23.

-- 
...Adam Di Carlo..<adam@onshore-devel.com>...<URL:http://www.onshored.com/>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]