Lines Matching full:head

28 	atf_set "descr" "Test head(1)'s handling of an empty file"
32 head infile > outfile
33 head < infile > outpipe
40 atf_set "descr" "Test head(1)'s default mode"
43 #head(1) is supposed to default to 10 lines of output. Verify that it does that.
46 head infile > outfile
52 atf_set "descr" "Test head(1)'s -n option"
56 head -n 50 outfile > expectfile
62 atf_set "descr" "Test head(1)'s -c option"
66 head -c 50 outfile > expectfile
72 atf_set "descr" "Test head(1)'s handling of a sparse file with text at the beginning of the file"
77 head -c 512 outfile > expectfile
83 atf_set "descr" "Test head(1)'s handling of a sparse file with text at the end of the file"
88 head -c 4096 < infile > outpipe
94 atf_set "descr" "Test head(1)'s handling of a missing line count arg"
98 atf_check -s not-exit:0 -e not-empty head -n outfile
103 atf_set "descr" "Test head(1)'s handling of an invalid line count arg"
107 atf_check -s not-exit:0 -e not-empty head -n -10 outfile
112 atf_set "descr" "Test head(1)'s reading of stdin"
115 #head(1) defaults to head -n 10 if no args are given.
117 jot -b test 20 | head > expectfile
123 atf_set "descr" "Test head(1)'s silent header feature"
126 #head(1) defaults to head -n 10 if no args are given.
131 head -q file1 file2 > outfile
137 atf_set "descr" "Test head(1)'s verbose header feature"
140 #head(1) defaults to head -n 10 if no args are given.
144 head -v file1 > outfile
150 atf_set "descr" "Test head(1)'s SI number feature"
155 head -c 1k file1 > outfile
159 head -n 1k file1 > outfile