The UNIX and Linux Forums
>
Special Forums
>
UNIX and Linux Applications
vi or vim replace ,$ (eol) with just a comma
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
vi or vim replace ,$ (eol) with just a comma
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
11-14-2007
prowla
Read Only
Join Date: Nov 2007
Posts: 165
I know there's an example of something like it in the
sed
& awk book.
But this will work from the command line:
cat myfile | while read s
do
case "$s" in
*,) printf "%s" s;;
*) echo $s;;
esac
done
prowla
View Public Profile
Find all posts by prowla