xfer problems sco-sun
Brian K. White
brian at aljex.com
Thu Apr 1 11:17:07 PST 2004
Tim Fischer wrote:
> Hi Jeff,
>
> I'm looking for that swapcpu program, but I can't find it anywhere. I
> assume it would be in the fp directory along with *clerk, etc?
>
> And thanks for posting to the list, we're trying to do the actual
> switchover this coming weekend! The more eyes I have on this issue
> the better.
>
> Thanks,
>
> -Tim
swapcpu? Just sounds like:
dd conv=swab if=in.txt of=out.txt
(the "conv=swab" is sco syntax, possibly the same feature is requested via a
different switch on sun, but "dd" is universal and so is it's ability to
byte-swap, merely it's exact command line syntax might differ slightly on
different platforms)
... never mind, 5 seconds with google just confirmed the above syntax is
correct for sun also.
and that command can be made into a one-line shell script named "swapcpu" if
you like in another 10 seconds.
#!/bin/ksh
dd conv=swab ${1:+if=$1} ${2:+of=$2}
above script would be used as:
swapcpu in.txt out.txt
or as an element of a pipe working from stdin & stdout
or a few more lines of script depending on if you want to get fancy and
allow it to take multiple filenames and loop through them, aoutomatically
generating output filenames based on the input filenames, or overwriting the
input files in-place.
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list