What OS and filesystem type are you using? (If you don't know, what output do you get from the commands:
Some operating systems are case insensitive. Some filesystem types are case insensitive even on OSes that are case sensitive.
I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
I have a text file with tons of data and I want to remove all lines which are have "240" regardless of ABC or BCD and shouldnt delete anything else
ABC_10_00024045.zip blah blah ABC_10_00024045.zip.new
ABC_10_00024046.zip blah blah ABC_10_00024046.zip.new
ABC_10_00024446.zip blah blah... (3 Replies)
hi,
I want to search all files in the current working direcotry and to print in comma (,) seperated output. But I have two patterns to search for.
Files will be in ABC20100508.DAT format.
Search should happen on the format (ABC????????.DAT) along with date(20100508).
I can do a
ls... (2 Replies)
Please help with the following command
tail -f /appdata/logs/alert_audit517.txt | grep "Sep 02"
The problem I have is with the file name "alert_audit517.txt". The 3 digit number at the end of the file name changes, so I need the file name to use a wildcard. Ive tried alert_audit***.txt, but... (5 Replies)
I am having difficulty with the following script:
#! /bin/bash
filelist=~/data/${1}*
~/./convertFile $filelist ~/temp/outputEssentially, there are a large number of files in the directory ~/data, each with a four-letter code at the beginning (eg. aaaa001 aaaa002 bbbb001 bbbb002 etc). The... (11 Replies)
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Hi,
cd /web/myf
ls -ltr
-rwxr-x--- 1 user1 Admin 17 Oct 7 15:53 mykey.db
-rwxr-x--- 1 user1 Admin 21 Oct 7 15:53 test.shmore test.sh
cd log01
pwd
cp ../*.db .When i run the test.sh i get the below output / error.
Output:
/web/myf/log01
cp: cannot stat `../*.db': No such file... (5 Replies)
I wish to check if my file has a line that does not start with '#' and has
1. Listen and 2. 443
echo "Listen 443" > test.out
grep 'Listen *443' test.out | grep -v '#'
Listen 443
The above worked fine but when the entry changes to the below the grep fails... (2 Replies)
Discussion started by: mohtashims
2 Replies
LEARN ABOUT DEBIAN
empty-page
EMPTY-PAGE(1) ExactImage Manual EMPTY-PAGE(1)NAME
empty-page - empty page detector of the ExactImage toolkit
SYNOPSIS
empty-page [option...] {-i | --input} input-file
empty-page {-h | --help}
DESCRIPTION
ExactImage is a fast C++ image processing library. Unlike many other library frameworks it allows operation in several color spaces and bit
depths natively, resulting in low memory and computational requirements.
empty-page counts dark pixels of a black and white image and decides with a threshold whether the page is most probably empty, and thus can
be removed from the image processing stream.
OPTIONS -i file, --input file
Read image from the specified file.
-m n, --margin n
Set width of border margin to skip. For speed reasons, the margin has to be a multiple of 8. The default is 16.
-p x, --percentage x
Set fraction of permissible dark pixels. The default is 0.05 (5%).
-h, --help
Display help text and exit.
EXAMPLES
$ empty-page -i test.tif
The image has 75461 dark pixels from a total of 1060992 (7.11231%).
non-empty
EXIT STATUS
The exit status is 0 if the image is mostly white, 1 otherwise.
SEE ALSO exactimage(7)AUTHORS
Jakub Wilk <jwilk@debian.org>
Wrote this manual page for the Debian system.
http://www.exactcode.de/site/open_source/exactimage/
This manual page incorporates texts found on the ExactImage homepage.
COPYRIGHT
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2.
empty-page 09/09/2013 EMPTY-PAGE(1)