The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to remove a newline character at the end of filename
.
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
:
How to remove a newline character at the end of filename
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-10-2009
sunpraveen
Registered User
Join Date: Jan 2009
Location: Pruthvi
Posts: 85
Amio,
Not sure why you are using awk with date command. You can as well use date command as shown below.
Code:
month=`date '+%b'` day=`date '+%d'` year=`date '+%Y'` time=`date '+%H%M%S'`
Use man date for more options.
Then, try to execute your script. You should have no newline characters.
HTH,
Regards,
Praveen
sunpraveen
View Public Profile
Visit sunpraveen's homepage!
Find all posts by sunpraveen
Find sunpraveen's past nominations received
Find sunpraveen's present nominations given