Home » mariadb on ubuntu » UNIX/LINUX Command – sed

UNIX/LINUX Command – sed

NAME

sed—Stream-oriented editor

SYNOPSIS

sed [ -hnV ][-e script ][-f script-file ][–help ][–quiet ][–silent ][–version][–expression=script ][–file=script-file ][file … ]

DESCRIPTION

sed reads the specified files or the standard input if no files are specified, makes editing changes according to a list of commands, and writes the results to the standard output.

OPTIONS

Options Description
-h, –help Print a usage message on standard output and exit successfully.
-n, –quiet, –silent Suppress the default output. sed only displays lines explicitly specified for output with the p command or the p flag of the s command. The default behavior is to echo each line of input, after edits, to the standard output.
-V, –version Print the version number on the standard output and exit successfully.
-e script, –expression=script Append one or more commands specified in the string script to the list of commands. If there is just one -e option and no -f options, the -e flag may be omitted.
-f script-file, –file=script-file Append the editing commands from script-file to the list of commands.

Multiple -e and -f commands may be specified. Scripts are added to the list of commands to execute in the order specified, regardless of their origin.

Related Posts

UNIX/LINUX Command – rsync

UNIX/LINUX Command – rsync

NAME rsync – a fast, versatile, remote (and local) file-copying tool rsync Command SYNOPSIS Local: rsync [OPTION…] SRC… [DEST] Access via remote shell:Pull: rsync [OPTION…] [USER@]HOST:SRC… [DEST]Push: rsync [OPTION…] SRC… [USER@]HOST:DEST Access via rsync...

UNIX/LINUX Command – strip

UNIX/LINUX Command – strip

NAME strip—Discard symbols from object files. SYNOPSIS strip [ -Fbfdname|–target=bfdname ] [ -Ibfdname|–input-target=bfdname ] [ -Obfdname|–output-target=bfdname ] [-Rsectionname|–remove-section=sectionname ] [ -s|–strip-all ] [-S|-g|–strip-debug ][-x|–discard-all...

UNIX/LINUX Command – expand

UNIX/LINUX Command – expand

NAME expand—Convert tabs to spaces SYNOPSIS expand [–tab1[,tab2[,…]]] [–t tab1[,tab2[,…]]] [–i] [—tabs=tab1[,tab2[,…]]] [–initial] [–help] [–version] [file…] DESCRIPTION This manual page documents the GNU version of expand. expand writes the contents of each given...

UNIX/LINUX Command – uuencode

UNIX/LINUX Command – uuencode

NAME uuencode—Encode a binary fileuudecode—Decode a file created by uuencode SYNOPSIS uuencode [-m] [ file ] nameuudecode [-o outfile] [ file ]… DESCRIPTION uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other...

Follow Us

Our Communities

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

5 + 14 =

Shares