change (1) --- look for a pattern and change it 02/01/81 _U_s_a_g_e change [ { } ] _D_e_s_c_r_i_p_t_i_o_n 'Change' searches text strings for a pattern, changes each occurrence of that pattern to the specified substitution string, and writes the result on the standard output. The first argument specifies the pattern to be matched; the second (optional) argument specifies the substitution string to replace the matched string. If the substitution string is missing, it is assumed to be null (i.e., the matched string is deleted). Any additional arguments are taken as strings to be changed. Each is interpreted as a newline- terminated string; thus, lacking specific instances of the newline character in the or strings, each additional argument will cause one line of output to be produced. If no arguments are sup- plied, lines of text to be changed are read from the stan- dard input. Patterns and substitution strings recognized by 'change' may take any form allowed in the text editor's substitute com- mand. For a discussion of this syntax, refer to the documentation for the Subsystem text editor, 'ed', found in the _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _S_o_f_t_w_a_r_e _T_o_o_l_s _S_u_b_s_y_s_t_e_m _T_e_x_t _E_d_i_t_o_r. _E_x_a_m_p_l_e_s lf -c | sort | change "?*" "/mfd/&" >files file.f> change "%C" "#" >file.r change ".pl1$" ".l" [source_file] _M_e_s_s_a_g_e_s "Usage: change ..." if no arguments are supplied. "illegal pattern string" for bad pattern. "illegal substitution string" for bad substitution string. _S_e_e _A_l_s_o ed (1), find (1), tlit (1), makpat (2), maksub (2), match (2), catsub (2) change (1) - 1 - change (1)