The UNIX and Linux Forums
>
Special Forums
>
UNIX Desktop for Dummies Questions & Answers
append a line to the last line in a file
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
:
append a line to the last line in a file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-27-2007
dennis.jacob
dj -------
Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 380
Try this..
Code:
echo "$(cat file)qrst" >temp mv temp file
O/p:
cat file
abcdef
ghijklm
nop
echo "$(cat file)qrst"
abcdef
ghijklm
nopqrst
Last edited by dennis.jacob; 03-27-2007 at
11:27 PM
.
dennis.jacob
View Public Profile
Find all posts by dennis.jacob