File: cat

package info (click to toggle)
zsh30 3.0.8-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,156 kB
  • ctags: 3,242
  • sloc: ansic: 36,445; sh: 3,125; makefile: 592; perl: 330; awk: 158; sed: 6
file content (16 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/local/bin/zsh -f

local file

if ((! ARGC)) then
	set -- -
fi

for file
do
	if [[ "$file" == - ]] then
		while read -u0ek 4096; do ; done
	else
		while read -u0ek 4096; do ; done < "$file"
	fi
done