The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
vi command in shell script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
vi command in shell script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-23-2006
bryan
Registered User
Join Date: Jan 2005
Posts: 22
vi command in shell script
I need to delete all the new lines in a file.
so, in vi, I would use
:1,$s/\n//g and then save the file.
How can I achieve this in command line? thanks
Remove advertisements
Forum Sponsor
bryan
View Public Profile
Find all posts by bryan