Computing.Net > Forums > Unix > Dos to Unix conversion

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos to Unix conversion

Reply to Message Icon

Name: john413
Date: September 10, 2005 at 14:03:46 Pacific
OS: windows
CPU/Ram: P4 512mb
Comment:

Hi !

I need to convert a DOS batch file to Unix Shell script. Can anybody help me by providing equivalent Unix shell script code to this DOS batch code?.

for /F "tokens=2,3,4 delims=/- " %%i in ("%date%") do set DateStamp=%%k%%i%%j

Any help would be great.

Thanks,
John.



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: September 11, 2005 at 15:01:43 Pacific
Reply:

Start by reading the man (manual) pages for these unix commands.

http://unixhelp.ed.ac.uk/CGI/man-cgi?date
http://wwwcgi.rdg.ac.uk:8081/cgi-bin/cgiwrap/wsi14/poplog/man/3C/strftime


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Dos to Unix conversion

Copy from PC to Unix? www.computing.net/answers/unix/copy-from-pc-to-unix/2877.html

How to delete ^M character using vi www.computing.net/answers/unix/how-to-delete-m-character-using-vi/2451.html

Please help:need to connect dos to unix www.computing.net/answers/unix/please-helpneed-to-connect-dos-to-unix/3307.html