The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Parsing line out of a file, please help !!
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Parsing line out of a file, please help !!
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-30-2007
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,426
You can do something like that:
Code:
read line < infile # read first line echo "$(date +'%d/%m/%Y') ${line}" > outfile
With your file example, the outfile is :
Code:
30/05/2007 A
Jean-Pierre.
aigles
View Public Profile
Find all posts by aigles
Find aigles's past nominations received
Find aigles's present nominations given