sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #83336
Re: cmdnline tool til at klippe den første linie væk?
Jørgen Heesche <heesche@xxxxxxxxxxx> skriver:
> Arne Jørgensen wrote:
>> Jon Bendtsen <bendtsen@xxxxxxx> skriver:
>>
>>> Jeg leder efter et værktøj til shell scripts der kan fjerne den
>>> første linie af en fil, pipe, ...
>> tail -n +2
>>
> Hvordan skal det forstås?, hvad betyder +2?.
tail(1):
If the first character of N (the number of bytes or lines) is a `+',
print beginning with the Nth item from the start of each file, other-
wise, print the last N items in the file. N may have a multiplier suf-
fix: b 512, k 1024, m 1024*1024.
mvh
/arne
--
Arne Jørgensen <http://arnested.dk/>
Follow ups
References