slice (1) --- slice out a chunk of a file 03/20/80 _U_s_a_g_e slice (-i | -x) [(-i | -x) ] _D_e_s_c_r_i_p_t_i_o_n 'Slice' searches its standard input for a line matching the pattern and copies through to standard out- put all the lines from that one to the first line matching the pattern . The "-i" and "-x" options control the inclusion and exclusion (respectively) of the line matching the associated pattern. If the and its associated inclusion flag are missing, the copy operation continues until end-of-file is encountered. 'Slice' is useful for pulling out chunks from well- structured files, like the documentation files for the Sub- system Reference Manual. For example, "slice -i %.bu -x %.sa" would copy the "Bugs" section out of a Reference Manual entry. _E_x_a_m_p_l_e_s slice.d> slice -i .bu -x .sa | fmt slice -i % -x %-EOF$ _M_e_s_s_a_g_e_s "Usage: slice ..." for invalid argument syntax. _B_u_g_s Doesn't handle lines longer than MAXLINE. _S_e_e _A_l_s_o cto (1), find (1), match (2), makpat (2) slice (1) - 1 - slice (1)