06-29-2006
unix2dos
if your 'data' is in text format use the command:
unix2dos -n old_file new_file
make sure to rename the file or you lose everything.
the -n usage is particularly for this. dos2unix works the other way.
peace
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a log file that I would like to copy from my windows pc to my unix pc for further processuon. Is there any command that can help me perform this task?. I already have a cron to fire up the process, but nothing seems to be coming up.
I am trying to use ftp but nothing is coming forth.... (8 Replies)
Discussion started by: odogbolu98
8 Replies
2. Shell Programming and Scripting
HI
I need to import data from a file which is in comressed format
but system doesn't have enough space to uncompress file
Is there any way so that i can do import from compressed file. (4 Replies)
Discussion started by: ap_gore79
4 Replies
3. UNIX for Dummies Questions & Answers
hi
I am very new to UNIX.
I need to retrieve data from a unix system and store it and display as output on a windows system.
Initiation of procedure is through JAVASCRIPT-based buttons on a HTML page.
This should cause a set of commands to run which colllect data from a unix based server and... (1 Reply)
Discussion started by: rossalyn_maxter
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have the file(F1.XL) in Unix Box. it's updating every 1hr.
I would like to import f1.xl to Windows excel sheet, when i need see the reports.
can any one clarify, is there any VB script for importing data from UNIX, like sql connection....
thanks (1 Reply)
Discussion started by: koti_rama
1 Replies
5. UNIX for Dummies Questions & Answers
Hello All:
We have acquired a business (UNIX system) and inherited data which is on SDLT tapes. We'd like to read this data and save it in Windows format, if possible.
Anyone in the know on how to do that, if feasible?
Please give your suggestions.
Regards (2 Replies)
Discussion started by: yourstruly
2 Replies
6. Shell Programming and Scripting
Hi,
I have a requirement for creating a Perl Script which will perform Data Import process in an automated way and I am elaborating herewith :
Section 1 )
- use the following command line format :
"./import.pl -h hostname -p port -f datafile.txt"
Section 2)
datafile.txt will... (3 Replies)
Discussion started by: scott_apc
3 Replies
7. Shell Programming and Scripting
How I can get the logs that are getting stored in specific location in unix server
through an Apache web server installed in unix server?
Requirement is to access the logs through the URL in windows browser without any access. (1 Reply)
Discussion started by: alvida
1 Replies
8. AIX
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies
9. Shell Programming and Scripting
Hi all,
I don't know if this the right place to post my question to get some ideas on how to done this.
I have a text files extracted from OCR that need to have snippets to be import to database as snippet table which have columns "snippet, date, title" I dont know if shell scripts can do it... (11 Replies)
Discussion started by: lxdorney
11 Replies
LEARN ABOUT PHP
xdiff_file_bdiff
XDIFF_FILE_BDIFF(3) 1 XDIFF_FILE_BDIFF(3)
xdiff_file_bdiff - Make binary diff of two files
SYNOPSIS
bool xdiff_file_bdiff (string $old_file, string $new_file, string $dest)
DESCRIPTION
Makes a binary diff of two files and stores the result in a patch file. This function works with both text and binary files. Resulting
patch file can be later applied using xdiff_file_bpatch(3)/xdiff_string_bpatch(3).
PARAMETERS
o $old_file
- Path to the first file. This file acts as "old" file.
o $new_file
- Path to the second file. This file acts as "new" file.
o $dest
- Path of the resulting patch file. Resulting file contains differences between "old" and "new" files. It is in binary format and
is human-unreadable.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
xdiff_file_bdiff(3) example
The following code makes binary diff of two archives.
<?php
$old_version = 'my_script_1.0.tgz';
$new_version = 'my_script_1.1.tgz';
xdiff_file_bdiff($old_version, $new_version, 'my_script.bdiff');
?>
NOTES
Note
Both files will be loaded into memory so ensure that your memory_limit is set high enough.
SEE ALSO
xdiff_file_bpatch(3).
PHP Documentation Group XDIFF_FILE_BDIFF(3)