Change all head/tail -X to head/tail -n X to be more POSIXly
compliant.
This commit is contained in:
parent
f508a78509
commit
3707ed8b68
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue