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

Dos to Unix conversion

Reply to Message Icon

Original Message
Name: john413
Date: September 10, 2005 at 14:03:46 Pacific
Subject: Dos to Unix conversion
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.


Report Offensive Message For Removal

Response Number 1
Name: FishMonger
Date: September 11, 2005 at 15:01:43 Pacific
Subject: Dos to Unix conversion
Reply: (edit)

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Dos to Unix conversion

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software