“Sed REPLACE NUMBER” Kode Jawaban

SED ganti jumlah panjang variabel

Just use one of following commands for replacing a number of:
sed "s/[0-9]//" f.txt	#One single digit as 1
sed "s/[0-9]\+//" f.txt #Further digits as 837, specifying match repetition "\+"
sed "s/[0-9\+\.[0-9]\+]//" file.txt #Float type with decimals
Armandres

Sed REPLACE NUMBER

Just use one of following commands for replacing a number of:
sed "s/[0-9]//" f.txt	#One single digit as 1
sed "s/[0-9]\+//" f.txt #Further digits as 837, specifying match repetition "\+"
sed "s/[0-9]\+\.[0-9]\+]//" file.txt #Float type with decimals
Armandres

Jawaban yang mirip dengan “Sed REPLACE NUMBER”

Pertanyaan yang mirip dengan “Sed REPLACE NUMBER”

Lebih banyak jawaban terkait untuk “Sed REPLACE NUMBER” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya