Change all head/tail -X to head/tail -n X to be more POSIXly

compliant.
This commit is contained in:
Francois Gouget 2003-10-21 23:47:47 +00:00 committed by Alexandre Julliard
parent f508a78509
commit 3707ed8b68
2 changed files with 5 additions and 5 deletions

View File

@ -360,7 +360,7 @@
<listitem>
<para>
Separate the last 100 lines to another file using
<command> tail </command>.
<command>tail</command>.
</para>
</listitem>
</orderedlist>
@ -388,7 +388,7 @@
<listitem>
<screen>
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name |& tee filename.out;
<prompt>$ </prompt>tail -100 filename.out > report_file
<prompt>$ </prompt>tail -n 100 filename.out > report_file
</screen>
</listitem>
</varlistentry>
@ -397,7 +397,7 @@
<listitem>
<screen>
<prompt>$ </prompt>wine -debugmsg +relay [other_options] program_name 2>&1 | tee filename.out;
<prompt>$ </prompt>tail -100 filename.out > report_file
<prompt>$ </prompt>tail -n 100 filename.out > report_file
</screen>
</listitem>
</varlistentry>

View File

@ -266,8 +266,8 @@ while ($exe=<FIND>) {
alarm(1000);# so it doesn't trigger in the diff, kill or find.
system("touch $cwd/runs/${runfile}.out");
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -$trunclines");
system("head -$trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
system("$diff $cwd/runs/${runfile}.out $cwd/${runfile}.out|head -n $trunclines");
system("head -n $trunclines $cwd/${runfile}.out >$cwd/runs/${runfile}.out");
unlink("$cwd/${runfile}.out");
&kill_subprocesses;
&cleanup_wine_ipc;