![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Try the command "unix2dos" or "ux2dos".
If you don't have either, install one |
|
#4
|
|||
|
|||
|
On our Sco Openserver 5 the commands are dtox & xtod if that helps.
|
|
#5
|
|||
|
|||
|
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 |