Sponsored Content
Top Forums Shell Programming and Scripting Get the count of files transmitted Post 302370555 by rdcwayx on Wednesday 11th of November 2009 08:15:34 PM
Old 11-11-2009
Something like this (not the real code)
Code:
for i in `ls`
do
  #Your FTP parts
  j++
  if ["$j" >= "100" ]; then 
      exit
  fi
done


Last edited by rdcwayx; 11-11-2009 at 09:29 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How To Find File Is Transmitting Or File Has Transmitted

Hi Q. suppose operator is doing transmitting files (by using FTP)from one login to another in to one particuler directory.let filename is scfd_001.unl .when ever operator starts FTP this name will created in that particular directory.but problem is hoe to find scfd_001.unl file is already... (1 Reply)
Discussion started by: mallikarjuna
1 Replies

2. Shell Programming and Scripting

count of files

How to count the number of files in a directory. Thanks Mahalakshmi.A (13 Replies)
Discussion started by: mahalakshmi
13 Replies

3. Shell Programming and Scripting

Count todays created files and old files

Hello experts, I used following approach to get listing of all files of remote server. Now I have remote server file information on same server. I am getting listing in the output.txt I want to count today's created files and old files. I want to compare the numbers... (11 Replies)
Discussion started by: dipeshvshah
11 Replies

4. UNIX for Dummies Questions & Answers

Count number of files in directory excluding existing files

Hi, Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time.. Thanks (3 Replies)
Discussion started by: ammu
3 Replies

5. Shell Programming and Scripting

Count Files

I was wondering if anyone could help me with this problem: Write a script called countFiles that takes two arguments, the initial directory and the number of levels and returns the count of all files (including directories) in the directories and subdirectories up to the number of levels. ... (4 Replies)
Discussion started by: clammy
4 Replies

6. UNIX for Dummies Questions & Answers

SSH: What data is actually being transmitted?

Sorry, I couldn't think of how to word my question in the title field, let me try to explain: If I am on "computer1" on a school network, and I ssh using Terminal to a remote server A, then I perform an rsync operation between server A and server B (home server), what data is being sent to my... (3 Replies)
Discussion started by: WIOP33
3 Replies

7. AIX

Adding CR to ascii data file generated on AIX platform and will be transmitted to Windows OS

I desperately need help converting ascii data file generated on AIX platform that contains dollar sign ($) at the end of each line in the data file as shown below. ME570^0128237^HG278999^20140805:21:00:00^BEENZ001^$ This is the AWK command for adding CR to the new line. awk... (1 Reply)
Discussion started by: cumeh1624
1 Replies

8. Shell Programming and Scripting

Error files count while coping files from source to destination locaton as well count success full

hi All, Any one answer my requirement. I have source location src_dir="/home/oracle/arun/IRMS-CM" My Target location dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct" my source text files check with below example.text file content $fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies

9. Shell Programming and Scripting

Shell script for field wise record count for different Files .csv files

Hi, Very good wishes to all! Please help to provide the shell script for generating the record counts in filed wise from the .csv file My question: Source file: Field1 Field2 Field3 abc 12f sLm 1234 hjd 12d Hyd 34 Chn My target file should generate the .csv file with the... (14 Replies)
Discussion started by: Kirands
14 Replies
TOMAC(1)						      General Commands Manual							  TOMAC(1)

NAME
tomac - Transmit files to the Mac SYNOPSIS
tomac [ - options ] [ files ] DESCRIPTION
tomac takes the files specified in tomac and transmits them to the Mac subject to the options specified. If files also specifies directo- ries they are followed recursively, and all files found will be transmitted. If no files parameter is specified, binhex reads a MacBinary stream from standard input and transmits the files found; folder information is lost. OPTIONS
In the absence of any options, tomac takes the specified files and transmits them to to the Mac using the XMODEM protocol. Directories named in files are followed recursively, all files found will be transmitted. Files are assumed to be in MacBinary format. However, if the filename ends with .info the file is assumed to be the info fork of a MacIntosh file split amongst more than one file. In that case the files with .data and .rsrc extensions are also read (if present). Also, if the info fork is mentioned in the parameter list, the names of data and resource forks can also be mentioned, but those will be ignored (this is to allow wild-card expansion by the shell.) Further, if some form of AppleShare is supported by the installed program, and if the current directory, or one of the directories found during recursive processing, is a directory in the format of the supported version of AppleShare, those files will be handled according to the properties of AppleShare. -r No intelligent file-processing is performed; all files named are assumed to be plain resource files, and are transmitted as if they were MacIntosh resource files with creator "RSED" and type "RSRC", unless another creator and/or type are specified. -d No intelligent file-processing is performed; all files named are assumed to be plain data files, and are transmitted as if they were MacIntosh data files with creator "MACA" and type "TEXT", unless another creator and/or type are specified. -u As -d, but the codes for CR and LF are interchanged. -U Is a synonym for -u. -c creator Defines the creator name to be used if one of the previous options is specified. -t type Defines the type name to be used if one of the previous options is specified. -l List every file and directory processed. -i Do not transmit files, give information only (implies -l.) -q Ask the user for every file/directory whether it should be visited (implies -l.) -x Use the XMODEM protocol for transmission. -y Use the YMODEM protocol for transmission (not yet supported.) -z Use the ZMODEM protocol for transmission (not yet supported.) -o Use the pre-beta version of XMODEM. -T Allow for time-out detection during the protocol. Normally you will not need this option because on occasion, when network delays do occur, time-out detection interferes with a good transmission. Also, when for some reason the connection is broken the program will normally receive a hang-up signal and terminate. However, in some situations it might be necessary to early detect time-outs (because of communication loss or whatever, without loss of connection). You should check whether use of this option has profits in your situation or not. -V Gives the patchlevel of the program, and other information. Other options are ignored and the program quits immediately. -H Give short information about the options. Other options are ignored and the program quits immediately. BUGS
As this is a beta release, there may still be some problems. SEE ALSO
macutil(1) AUTHOR
Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl) Parts of the code are based on codes from: Dave Johnson. 3rd Berkeley Distribution October 22, 1992 TOMAC(1)
All times are GMT -4. The time now is 04:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy