-
converting a .sh file to .bat file
Hi All
I need to convert a .sh file to .bat file in order to run the script in WINDOWS.
I have a sample .sh file.
----------------------------------------------
#!/usr/bin/ksh
# this script take a input param.
if [ "$#" -eq "0" ]; then
echo "please enter a log file name and path"
else
FileName="$1"
if [ -e $FileName ]; then
echo "Starting Time Stamp"
head -n 1 $FileName | cut -b17-35
echo "End time Stamp"
tail -n 1 $FileName | cut -b15-33
else
echo " the file not found"
fi
fi
----------------------------------------------
Can anyone please guide me how to write this script as a .bat file
Thanks in Advance
Aravind
Similar Threads
-
By n_yerramaneni in forum .NET
Replies: 1
Last Post: 12-07-2005, 03:54 PM
-
By David in forum VB Classic
Replies: 1
Last Post: 09-04-2001, 07:38 AM
-
By Chris L. in forum VB Classic
Replies: 0
Last Post: 07-31-2001, 12:23 PM
-
By Cynthia Leslie in forum Java
Replies: 3
Last Post: 06-09-2001, 06:43 PM
-
By Bryan in forum VB Classic
Replies: 1
Last Post: 05-18-2001, 02:19 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks