How would you replace the n character in a file with some
xyz?

Answer Posted / tony

cat filename | sed 's/n/xyz/g' > newfile

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you pass and access arguments to a script in linux?

681


How do you create a shortcut in linux?

673


What is $1 in shell scripting?

678


What will happen to my current process when I execute a command using exec?

617


Why is it called a shell?

588






What is the use of "$?" Sign in shell script?

696


What is the significance of the shebang line in shell scripting?

636


What is difference between bash and shell?

629


What is the difference between scripting and coding?

618


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.

888


How do you find out What is your shell?

671


Write a script to print the first 10 elements of fibonacci series.

1938


How do I start a shell script?

668


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

657


What is the first line in every perl script called?

649