Sponsored Content
Top Forums UNIX for Dummies Questions & Answers After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted Post 302954053 by linuxmanju on Friday 4th of September 2015 01:37:24 AM
Old 09-04-2015
Quote:
Originally Posted by Khan28
Hi Folks,

While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary but when that particular is used in someother shell script I come to know that it is corrupted.

Regards,
Why can't you use md5sum ?.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTP'ed in ASCII a word file, how to recover

This is my worst nightmare in recent years!!! I spent two days writing a proposal due tomorrow, ftp'ed the Word doc to a Unix machine in ASCII mode (i forgot to turn BIN on). Then I was trying to help a colleague download it and I accidently download the ASCII file back to the same dir on my... (1 Reply)
Discussion started by: venkir
1 Replies

2. UNIX for Dummies Questions & Answers

how to check a file to contain only ascii charaters

HI I need to validate a file in UNIX to contain only ascii characters.This is a production issue.Can anyone help with the command? Thanks Subbarao (1 Reply)
Discussion started by: srichakra9
1 Replies

3. Shell Programming and Scripting

ftp - determine ascii or binary file

Hello, How to i determine via ftp commandline if files on ftp server is ascii or binary files. Like every other comon windows ftp program does it automatically. regards Thomas (5 Replies)
Discussion started by: congo
5 Replies

4. UNIX for Advanced & Expert Users

Dynamically ftp'ing a file

Hi, I am having unix script that passes argument value to script. The script finds the file and keeps it in a directory. I need to ftp this file to another server. Please guide me how to acieve this. I am able to connect to ftp server but i am not able to use the unix argument in the ftp... (0 Replies)
Discussion started by: pyaranoid
0 Replies

5. Shell Programming and Scripting

size of a file that iam ftp ing

Hi, I want to compare the size of the files in my local machine before ftp ing it and the size of the file in the remote machine i.e after ftping . SO that the ftp is successful . (3 Replies)
Discussion started by: dineshr85
3 Replies

6. Shell Programming and Scripting

how to check the file data type(ascii or binary)

hi i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format, please help thanks in advance satya (1 Reply)
Discussion started by: Satyak
1 Replies

7. Shell Programming and Scripting

How to check if the file has EBCDIC or ascii characters

Hi, is there a way to check if the initial few characters are ebcdic or ascii in a file? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies

8. Solaris

UFS File System Periodically Corrupted - What to check?

The system is a SunFire V440 running SunOS 5.10 About once every 3-4 weeks, the system will reboot into single user mode on its own, and then I run svcs -xv, the filesystem service and dependent services will be disabled due to the metadisk file system being corrupted. The I've been doing... (2 Replies)
Discussion started by: the.gooch
2 Replies

9. Shell Programming and Scripting

FTP'ing the zipped file

Hi, I need to have a shell script that FTP's a zipped file from a particular location. I have some path and inside that path i will have folders like x_timestamp and inside x_timestamp there may many folders based upon events like y_111,y_222,y_333.Inside each event there will be another... (3 Replies)
Discussion started by: weknowd
3 Replies

10. UNIX for Beginners Questions & Answers

Check if file is EBCDIC or ASCII format

So, i have this requirement where i need to check the file format, whether it's EBCDIC or ASCII, and based on format retrieve the information from that file: my file is: file1.txt-->this ebcdic file file2.txt-->ascii file i tried below code: file=file1.txt type="`file $file`" i get... (7 Replies)
Discussion started by: gnnsprapa
7 Replies
atfsrepair(1)							    ShapeTools							     atfsrepair(1)

NAME
atfsrepair - repair corrupted AtFS repository, or convert old repository to new format. SYNOPSIS
atfsrepair [-Ceinqv] file1 ... DESCRIPTION
Atfsrepair checks the AtFS repository for inconsistencies in the a given file history. If a corrupted archive file is found in the reposi- tory, atfsrepair tries to repair it by reconstructing missing parts and eliminating inconsistencies. Without a file argument, atfsrepair handles the complete repository. Atfsrepair is interactive and (hopefully) self explanatory. If you have permission problems, e.g. your AtFS repository grants group write permission but another user from your group can still not save data to the repository, atfsrepair is also the right thing to do. The programs straightens permission bits within the repository. Atfsrepair automatically updates archive files, when the archive file format or the arrangement of archive files within the AtFS subdirec- tory was changed. Before taking any permanent action, atfsrepair asks the user for a confirmation. This behaviour can be switched off by either the -n or the -q option (see below). Atfsrepair shall not be called concurrently with other applications on an AtFS repository. Make sure, that nobody else works on the reposi- tory to be repaired as atfsrepair may ignore existing archive locks and does not set own locks. OPTIONS
-C This option causes atfsrepair to try it's hand at a derived object cache. -e Edit Mode. Invoking atfsrepair with this option rather serves for manipulating archive files than for repairing them. It shall only be used by very experienced users. For nearly every item in the archive file, atfsrepair asks the caller for confirmation or modi- fication. Beware, this level of verbosity can be very annoying when the archive file is big. -i Interactive mode (default). -n Non-interactive mode. In this mode, atfsrepair tries to repair corrupted archive files without human assistance. It does not perform any user interaction and behaves as if the user would always choose the default decision in interactive mode. -q Quiet mode. Same as -n but also supresses all informative messages. Only error messages will be displayed. -v Print current version number. No file processing is done. SEE ALSO
afarchive(5) BUGS
Dates appear in internal form (seconds since 1970) rather than in human readable form. AUTHOR
Andreas.Lampen@cs.tu-berlin.de AtFS-1.71 Thu Jan 20 12:06:00 1994 atfsrepair(1)
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy