1.

Which Of The Following Commands Will Replace All Occurrences Of The Word Rate With The Word Speed In The File Racing?

Answer»

When using sed to do a search and REPLACE, its default action is to only replace the first occurrence in each LINE. Adding the ‘G’ makes sed replace all occurrences of the search TERM even when it occurs multiple TIMES on the same line.

When using sed to do a search and replace, its default action is to only replace the first occurrence in each line. Adding the ‘g’ makes sed replace all occurrences of the search term even when it occurs multiple times on the same line.



Discussion

No Comment Found