The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
character set conversion in unix C gucho High Level Programming 1 03-01-2008 04:27 AM
conversion from Unix to windows kiwi_bloke Shell Programming and Scripting 3 10-10-2005 10:56 AM
Unix to EBCDIC conversion Bab00shka UNIX for Dummies Questions & Answers 2 01-20-2005 08:58 AM
unix to windows conversion misc19432043 Filesystems, Disks and Memory 2 10-10-2002 11:08 PM
Time conversion in Unix kamlakar UNIX for Advanced & Expert Users 1 04-22-2002 09:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2005
Registered User
 

Join Date: Sep 2005
Posts: 1
Dos to Unix conversion

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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-10-2005
Registered User
 

Join Date: Jan 2005
Posts: 682
DateStamp=$(date %Y%m%d)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0