changeLine

Purpose:

Change a string in a line of the PAM Datapoint file in the current directory.

Enter:

changeLine <filename> <old_string> <new_string>

Where:

filename Specify the PAM filename in which to change the string. Wild cards are valid.
old_string Specify the string in the PAM file to change.
new_string Specify the new string to replace the old_string in the PAM file.

Example:

changeLine string1 string 2 MYTESTID.*

The above command changes string1 to string2 in any Pam datapoint file whose name begins with ‘MYTESTID’ in the current directory.¬† It reads each file and replaces ‘string1’ with ‘string2’.

Notes:

Be sure to ‘cd’ to the directory containing the files to be changed before entering the command.

See Also: