Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sed replace number of variable length

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: deno install ubuntu 
Shell :: ls human readable file size 
Shell :: pip3 not found 
Shell :: conda install lightgbm 
Shell :: start service docker on linux 
Shell :: add env variable mac zsh 
Shell :: angular cli global update 
Shell :: how to install curl in centos 7 
Shell :: chromium for linux 
Shell :: install ngrok 
Shell :: linux install doxygen 
Shell :: pip install hashlib 
Shell :: install docker on centos 
Shell :: how to unzip tar file 
Shell :: install tkinter 
Shell :: pretty git log 
Shell :: install protonvpn ubuntu 
Shell :: install multiselectfield 
Shell :: ionic capacitor run android live reload 
Shell :: install specific kubectl version 
Shell :: bash for file in 
Shell :: git access denied 
Shell :: install apache2 ubuntu 
Shell :: powershell upgrade 
Shell :: how to install idle on ubuntu 20.04 
Shell :: how to get list of files in zip linux 
Shell :: composer tree 
Shell :: download chrome command line kali linux 
Shell :: http-server npm 
Shell :: conda create env from yml 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =