06-01-2009
go through the man page of find command you will get some idea
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to use an 'if statement' that will check if a certian file is greater in size than a certain value given by the user, but cannot get it to work. Do you have any ideas how this can be done?
Your help is appreciated! (6 Replies)
Discussion started by: Dado
6 Replies
2. Shell Programming and Scripting
Hi,
I am writing a script which takes the input file name and concat as a new file by appending a "1" to the file name. However i am not able to get the size of this new file. I am not sure where i am going wrong. Please check the script and help me get this working.
#!/bin/sh ... (1 Reply)
Discussion started by: ragsnovel
1 Replies
3. Shell Programming and Scripting
Hi All,
OS:AIX 64 bits using korn shell.
Requirement:
shell script to check file size greater than 50M and send mail alert.
Thanks for your time!
Regards, (3 Replies)
Discussion started by: a1_win
3 Replies
4. Shell Programming and Scripting
Hello,
I've written a Perl script that copies a set of files from one server to another.
Prior to transferring a file the script gets the file size from the source system and compares this to the file size received in the target system.
Except that the file sizes are slightly different.
... (1 Reply)
Discussion started by: mbb
1 Replies
5. UNIX for Dummies Questions & Answers
Hi There,
I need a script which shud basically check the size of the file..if its is 0kb send email to a list of people and
if is > 0KB, send an email to someother list...
Please help (1 Reply)
Discussion started by: saggiboy10
1 Replies
6. Shell Programming and Scripting
Hi,
I am using below piece of code to get the size of the remote file.
$ftp->cwd($destination) or $error=$ftp->message;
if(!$error)
{
$ftp->put($file) or $error=$ftp->message;
print "FTP size = \n";
... (3 Replies)
Discussion started by: FarooqOnline
3 Replies
7. Shell Programming and Scripting
How can i remove a file using shell script when its size exceeds 10MB. Given that file is located in different location to the shell script where it is running? (4 Replies)
Discussion started by: vel4ever
4 Replies
8. Shell Programming and Scripting
Hi
can some one please help me how i can get the output i require:
My text file "sample.txt" contains the text like below
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_fedora-lv_root
15G 2.6G 12G 19% /hari
Filesystem Size ... (3 Replies)
Discussion started by: harimhkr
3 Replies
9. Shell Programming and Scripting
We are transferring xml files to remote machine through cronjob @every 5 mins and then will move the files to the backup folder is source server.
Sometimes the file is transferred as 0kb to destination server, whereas the file in the source backup folder is completely written.
There is no error... (6 Replies)
Discussion started by: Bhavi
6 Replies
10. UNIX for Beginners Questions & Answers
I wish to by pass a process if the file is over a certain size?
not sure this makes sense
current bit of the script below
#if we are bypAssing the OCR
if ; then
echo Bypassing HOTFOLDER OCR
HOT_FOLDER_DIR=$BATCH_POST_OCR_DIR;
potential change below? would this work would I need... (1 Reply)
Discussion started by: worky
1 Replies
apropos(1) General Commands Manual apropos(1)
NAME
apropos - Locates reference pages by keyword
SYNOPSIS
apropos keyword...
The apropos command shows which reference pages contain instances of any of the given keywords in their purpose lines.
OPTIONS
Specifies the word(s) for which apropos should search.
DESCRIPTION
In looking for keywords, apropos considers each word separately and ignores the case of letters. Words that are part of other words are
also considered; thus, when looking for the word compile, apropos will also find all instances of compiler.
If the output of the apropos command begins with a name and reference section number, you can enter man section name. For example, if the
output of the apropos command is make(1u), you can enter man 1u make to obtain the reference page on System V version of the make command.
The apropos command works just like the man command with the -k option.
EXAMPLES
To find reference pages with the keyword password in the purpose line, enter: apropos password
FILES
Keyword database.
SEE ALSO
Commands: man(1), whatis(1), catman(8)
apropos(1)