[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposed new feature: head --show-truncation
From: |
Paul Eggert |
Subject: |
Re: Proposed new feature: head --show-truncation |
Date: |
18 Aug 2003 20:04:29 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Ed Avis <address@hidden> writes:
> I find this feature useful, and it seems natural -
Isn't easily programmed as a script? For example, you might have
a script called 'headt' that works like this:
#! /bin/sh
# usage: headt lines file
lines=$1
file=$2
sed $(expr $lines + 1)'{
s/.*/[[[input was truncated]]]/
q
}' $file