What is use of sed command?
Answer Posted / bhaskar
Usage: sed [OPTION]... {script-only-if-no-other-script}
[input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the
commands to be executed
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if
extension supplied)
-c, --copy
use copy instead of rename when shuffling
files in -i mode
(avoids change of input file ownership)
-l N, --line-length=N
specify the desired line-wrap length for
the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a
single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input
files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit
If no -e, --expression, -f, or --file option is given, then
the first
non-option argument is taken as the sed script to interpret.
All
remaining arguments are names of input files; if no input
files are
specified, then the standard input is read.
E-mail bug reports to: bonzini@gnu.org .
Be sure to include the word ``sed'' somewhere in the
``Subject:'' field.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Describe the usage and functionality of the command rm –r * in unix?
What is the unix command to confirm a remote host is alive or not?
Explain command to view process running?
what is the advaantage of each user having its own copy of the shell?
What is the command to view process running?
What is the general format of unix command syntax?
Write a command that will display files in the current directory, in a colored, long format.
What is grep and how do you use it?
What is the first character of the output in ls l command?
Why is it called a shebang?
How can we use grep command in unix?
What is command statement?
What is grep in bash?
What is the command to compare two files in unix?
What is the use of tee command?