Horje
bash vim replace with newlines Code Example
bash vim replace with newlines
# Basic syntax:
:%s/character/\r/g # note, use \r instead of \n

# Example usage:
# Say you have a file with a line this and you want all parameters on different
# lines:
<param_1> <param_2> <param_3> <param_4>

# You could run:
:%s/ /\r/g # to get:
<param_1>
<param_2>
<param_3>
<param_4>

# Or you could run something like:
%s/<> </\r:/g # to get:
<param_1:
param_2:
param_3:
param_4> # which saves you some work if you also want to delete the separators




Shell

Related
make a commit with past date Code Example make a commit with past date Code Example
change shell kali linux Code Example change shell kali linux Code Example
shell check if string contains substring Code Example shell check if string contains substring Code Example
zsh: command not found: pg_restore docker Code Example zsh: command not found: pg_restore docker Code Example
bash move a list of files Code Example bash move a list of files Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13