The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 09:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 04:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 10:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2002
Registered User
 

Join Date: May 2002
Location: London, England
Posts: 6
Sco Unix Help

i am trying to convert sco unix log files to dos text but do not knwo the command line. Can anyone tell me what the command line is please.
__________________
[img]http://www.btinternet.com/~harringtonjw/potterlogo/potterslogo.gif[img]

For I dipt into the future, far as human eye could see,
Saw the Vision of the world, and all the wonder that would be; -ALFRED LORD TENNYSON (1809-1883)
Forum Sponsor
  #2  
Old 05-23-2002
killerserv's Avatar
Unix Predator
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
Im not sure any other way but you may try this. It can convert your log file to DOS text. Give a try, If that doesnt help then perhaps some others might have a idea.

Code:
:
##########################################
UNIX to DOS text file conversion
##########################################
PN=`basename "$0"`			# Program name
VER='1.1'

Usage () {
    echo >&2 "$PN - UNIX to DOS text file conversion, $VER
usage: $0 file [file ...]"
    exit 1
}

Msg () {
    for MsgLine
    do echo "$PN: $MsgLine" >&2
    done
}

Fatal () { Msg "$@"; exit 1; }

set -- `getopt h "$@"` || Usage
[ $# -lt 1 ] && Usage			# "getopt" detected an error

while [ $# -gt 0 ]
do
    case "$1" in
					# your flags here
	--)	shift; break;;
	-h)	Usage;;
	-*)	Usage;;
	*)	break;;			# First file name
    esac
    shift
done

[ $# -lt 1 ] && Usage

set -e				# Terminate at first error
for file
do
    echo >&2 "$file"
    sed 's/$/
/' < "$file" > tmp.$$ &&
	mv tmp.$$ "$file"
done
  #3  
Old 05-24-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Try the command "unix2dos" or "ux2dos".

If you don't have either, install one
  #4  
Old 05-24-2002
Registered User
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
On our Sco Openserver 5 the commands are dtox & xtod if that helps.
  #5  
Old 05-24-2002
Registered User
 

Join Date: Mar 2002
Posts: 20
Dude! The easiest way is to FTP from your Win machine with something free like ws-ftp95, connecting to the Unix box with the log files you desire. TRansfer them via ascii not binary adn open them with Notepad, or wordpad if its too big for notepad, but windows will figure that part for you.

I do it on a daily basis!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:04 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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0