AminetAminet
Search:
85191 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/head-1.24.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Print first lines of files (OpenBSD)
Author:Bill Joy / UC Berkeley (ported by Duncan Bowring)
Uploader:duncan bowring us
Type:util/cli
Version:1.24
Architecture:m68k-amigaos >= 3.0
Date:2026-03-22
Download:util/cli/head-1.24.lha - View contents
Readme:util/cli/head-1.24.readme
Downloads:15

head — Print first lines of files

Original author: Bill Joy / UC Berkeley (OpenBSD head.c,v 1.24)
Ported by Duncan Bowring using amiport (AI-assisted porting toolkit).
Project: https://github.com/bdgscotland/amiport

Cross-compiled with m68k-amigaos-gcc for AmigaOS 3.x (68000+).
Tested on FS-UAE (A1200, Kickstart 3.1) -- 21/21 tests passed.

Usage:
  head [file ...]             Print first 10 lines of each file
  head -n 5 file.txt          Print first 5 lines
  head -20 file.txt           Print first 20 lines (legacy syntax)
  head file1.txt file2.txt    Multiple files with ==> headers <==

Features:
  - Default: 10 lines
  - -n count: specify line count
  - Legacy -count syntax supported
  - Multiple files get ==> filename <== headers
  - Reads stdin when no files given
  - AmigaOS wildcard expansion (#? patterns)
  - Proper exit codes: 0=OK, 10=ERROR

Includes full source code (original POSIX and ported Amiga versions)
and PORT.md documenting every transformation applied.


Contents of util/cli/head-1.24.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
-rw-r--r--     0/0        2051    4135  49.6% -lh5- 48f8 Mar 22 06:36 PORT.md
-rw-r--r--     0/0        1959    7640  25.6% -lh5- c6fa Mar 22 06:36 TEST-REPORT.md
-rw-r--r--     0/0       20444   37600  54.4% -lh5- 4ca1 Mar 22 06:36 head
-rw-r--r--     0/0         661    1217  54.3% -lh5- 3d08 Mar 22 06:36 head.readme
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Mar 22 06:36 original/
-rw-r--r--     0/0        1768    3680  48.0% -lh5- 689a Mar 22 06:36 original/head.c
drwxr-xr-x     0/0           0       0 ****** -lhd- 0000 Mar 22 06:36 ported/
-rw-r--r--     0/0        3303    7191  45.9% -lh5- 0a8f Mar 22 06:36 ported/head.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         8 files   30186   61463  49.1%            Mar 22 23:48
Page generated in 0.04 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>