Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

dos2unix

#1) (On unix server) Open the file to change in vi or vim (example: vi Filename.cpp)
#2) Run the replacement command in vi (or vim) as follows

:%s/^M$//
#NB: the ^M is 1 character that can be typed by using the following key combinations: [ctrl] + [v]; [ctrl] + [m]
Comment

PREVIOUS NEXT
Code Example
Shell :: vi replace pattern 
Shell :: git clean all submodules on branch switch 
Shell :: realtek 8852 
Shell :: terminator linux is not start 
Shell :: My first git commit 
Shell :: migration angular version 
Shell :: powershell github 
Shell :: Comparing Actual Changes Between Two Branches 
Shell :: how to define a command in bashrc 
Shell :: remove packages.sury.org in debian 
Shell :: how to uninstall app from android phone programmatically 
Shell :: Update CA Certificate Linux 
Shell :: set background image in linux cmd 
Shell :: sharepoint logs folder 
Shell :: clear pagespeed cache 
Shell :: bash if unset 
Shell :: ansible playbook to set passwordless sudo 
Shell :: remap caps lock to shift linux 
Shell :: git merge without delete files 
Shell :: how to make pyinstaller build python program not open command prompt 
Shell :: helm commands 
Shell :: git deleted files update 
Shell :: ssh sever time out 
Shell :: react redux install 
Shell :: awk and grep in linux for waht 
Shell :: how to overwrite main branch git 
Shell :: installing dbeaver 
Shell :: how to get driver information ubuntu 
Shell :: debian list packages automatic install 
Shell :: piping commands 1 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =