“SED Zastąp nowością” Kod odpowiedzi

Wymień tekst SED

sed -i 's/old-text/new-text/g' input.txt
Clear Caterpillar

Wymień ogranicznik dla nowej linii

Just use tr command as follow:
tr , '\n' < file	#Replaces all ',' matches for a new line
Armandres

SED Zastąp nowością

For substituting with newline use sed command to replace a match with a
not used char and tr command to replace that char with a newline '\n'
#For example:
echo "123." | sed -E 's/([[:digit:]]*)\./\1|next line/' | tr '|' '\n'
Armandres

Odpowiedzi podobne do “SED Zastąp nowością”

Pytania podobne do “SED Zastąp nowością”

Więcej pokrewnych odpowiedzi na “SED Zastąp nowością” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu