How would you replace the n character in a file with some
xyz?
Answer Posted / ram
* sed 's/n/xyz/g' filename > new_filename
s -search and replace
n -character to be replaced
xyz - character to replace
g -global
* vi filename
:%s/n/xyz/g --search and replace
:w! ---save
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What happens on a system call?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How do I run a script from command prompt?
what is info area how many types?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How can you get the value of pi till a 100 decimal places?
write a shell script to check the failed jobs?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
How will you find the 99th line of a file using only tail and head command?
How can we find the process name from its process id?
How do I run a script on mac?
What is shell environment?
How do I edit a .sh file?
What is computer cli?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.