RE: How would you replace the n character in a file wi...
We can replace n characters by using the following command: 1 $s/./xyz/g where 1 shows that the search string will start searching patterns from first line of the file. '.' for any character. g for global replacement.