Sponsored Content
Full Discussion: Empty Files
Top Forums Shell Programming and Scripting Empty Files Post 302187020 by arunkumar_mca on Friday 18th of April 2008 06:19:37 PM
Old 04-18-2008
have u tried with -z option ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

move files from folder thats are not empty

Hi, I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not find file or folder' when the folder is empty. Any ideas, Thx in advance, Steven. (8 Replies)
Discussion started by: Steven
8 Replies

2. Shell Programming and Scripting

deleting the empty files

as of our requiremnt some x no of files will be created from a third party tool ,out of them one or two files will be empty i.e size is 0. so i want to remove those files which are empty. naming of the files which are created will be like this abc_.txt 0 size abc_1.txt 4000 size abc_2.txt... (1 Reply)
Discussion started by: srivsn
1 Replies

3. UNIX for Dummies Questions & Answers

How to find files not empty?

Is there any way, we can find files not empty? I know one can find empty files by using find with -size is equalled to 0. Please let me know, how I can find files greater than 0 or any other size in number? (2 Replies)
Discussion started by: videsh77
2 Replies

4. Shell Programming and Scripting

deleting empty files in a directory

Hello Gurus, I want to delete only empty files (files with 0 bytes) at once from the local directory. Rightnow I need to go through all the files one by one manually and check the empty files before deleting them. Is there any unix command that finds and deletes empty files in a directory?... (5 Replies)
Discussion started by: berlin_germany
5 Replies

5. Shell Programming and Scripting

How to empty all files in a directory

Hi all, Can you tell me how to empty all files in a directory with a "find" command? It does not seem to work the way I try it: # ls -l *.dat -rw-r--r-- 1 root root 7 Jul 20 20:51 la2.dat -rw-r--r-- 1 root root 4 Jul 20 20:51 la.dat # find... (9 Replies)
Discussion started by: majormark
9 Replies

6. HP-UX

Critical files in /etc overwritten EMPTY!

The following files were wiped out - new empty files were left in their place. /etc/inittab, /etc/inetd.conf, and /etc/MANPATH The system is running HP-UX 11i v3 - Mar08. Anyone seen anything like this? Any ideas on a way to figure this out if it happens again or a suggested way to... (9 Replies)
Discussion started by: KEnglander
9 Replies

7. Homework & Coursework Questions

Creating empty files

Use and complete the template provided. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a single command to create a new empty file in P1 called cloud9, I have to do it from my current working directory which is P3 cd ../ away P1... (1 Reply)
Discussion started by: dat350z
1 Replies

8. Shell Programming and Scripting

> to empty files, but ambiguous redirect

Hi Everyone, # ll total 0 -rw-r--r-- 1 root root 0 2010-05-13 11:29 a1.log -rw-r--r-- 1 root root 0 2010-05-13 11:29 a2.log -rw-r--r-- 1 root root 0 2010-05-13 11:29 a3.log # rm a.log above rm no problem, but when i use "> a.log", it says "-bash: a.log: ambiguous redirect". ... (3 Replies)
Discussion started by: jimmy_y
3 Replies

9. Shell Programming and Scripting

To empty the files

Hi, Using the shell script, how can I empty the files that are under a dir. -Siva (2 Replies)
Discussion started by: gsiva
2 Replies

10. Shell Programming and Scripting

Files exists with same name and not empty

Hi everyone, I am new to shell scripting.Please help. I have list of files under some path /opt/thomas/ FileNames : 1.txt,2.txt,3.txt I would like to check if these three files exists and not empty,continue with the script or else write error message file not found or file empty Thanks (2 Replies)
Discussion started by: thomas9192
2 Replies
BOGOLEXER(1)						    Bogofilter Reference Manual 					      BOGOLEXER(1)

NAME
bogolexer - Utility program for separating email messages into tokens SYNOPSIS
bogolexer [-p] [-q] [-h] [-n] [-v] [-x flags] [-c file] [-C] [-D] [-I file] [-O file] [-V] DESCRIPTION
Bogolexer is part of the bogofilter Bayesian spam filter package. It is used to separate messages into tokens and to test new versions of the lexer.l code. OPTIONS
The -p option tells bogolexer to print just the tokens read from stdin, without any extra messages. The -q option tells bogolexer to print a token count, without printing the actual tokens. The -h option prints the help message and exits. The -n option tells bogolexer to map non-ascii characters to the question point '?'. The -v option increases the verbosity level. The -x flags option allows setting of debug flags for printing debug messages. The -cfilename option tells bogolexer to read the config file named. The -C option prevents bogolexer from reading configuration files. The -D option redirects the debugging output to stdout (it defaults to stderr). The -I filename option tells bogolexer to read its input from the specified file, rather than from stdin. The -O filename option tells bogolexer to write its output to the specified file, rather than to stdout. The -V option prints the version number and exits. AUTHOR
The bogofilter developer team. For updates, see the bogofilter project page[1]. SEE ALSO
bogofilter(1), bogotune(1), bogoupgrade(1), bogoutil(1) NOTES
1. the bogofilter project page http://bogofilter.sourceforge.net/ Bogofilter 03/15/2010 BOGOLEXER(1)
All times are GMT -4. The time now is 03:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy