Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash replace newline with space

Just use tr command as follow:
tr '
' ' ' < file	#Replaces all newlines matches with a space ' '
Comment

PREVIOUS NEXT
Code Example
Shell :: git source autocomplete 
Shell :: git fetch prune 
Shell :: ubuntu install latest node with nvm 
Shell :: kill all processes by name cmd 
Shell :: check ram bus speed 
Shell :: get current kernel version 
Shell :: docker bash command 
Shell :: ps aux tree 
Shell :: How to completely remove Mod Pagespeed from Ubuntu 
Shell :: kill apache Failed to restart apache: [apache] 
Shell :: linux file size 
Shell :: what is my git config 
Shell :: get disk utilization linux 
Shell :: ffmpeg take screenshot 
Shell :: install node brew 
Shell :: git reset change in one file 
Shell :: telegram on archlinux 
Shell :: ubuntu change jdk 
Shell :: git cherry pick range 
Shell :: rpm fusion repo install fedora 
Shell :: linux get date yyyymmdd 
Shell :: validate ssl certificate on website using curl 
Shell :: hapus folder di linux 
Shell :: dependencies dpkg 
Shell :: please rebuild precompiled header 
Shell :: isntall jest cli 
Shell :: bash symlink everything in a directory 
Shell :: Créer un installateur Windows 
Shell :: pip upgrade command 
Shell :: add git submodule 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =