04-14-2020
Good find, but: it will run 9 external commands and thus use approx. the fivefold time, and, as is, it won't confine itself on .doc[x]? and .pdf files.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am looking for a script, or pointer to an approach to creating a script, that will compare two versions of a codebase and output a third directory structure containing only the files that differ between the two. I use diff quite often, but it will only create patch files (AFAIK). Does... (3 Replies)
Discussion started by: jwilliams108
3 Replies
2. Shell Programming and Scripting
Hi
I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ??
/logs
logs1 logs2 logs3
Now I need to remove files under
logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' .
in... (3 Replies)
Discussion started by: Beginner123
3 Replies
3. Shell Programming and Scripting
#!/bin/bash
for i in `ls -c1 /usr/share/applications`
do
#name=`cat /usr/share/applications/$i | grep ^Name= | cut -d = -f2`
#categories=`cat /usr/share/applications/$i | grep ^Categories= | sed 's/;/=/g' | cut -d = -f2`
name=$(grep ^Name= /usr/share/applications/$i | cut -d = -f2)... (12 Replies)
Discussion started by: alexscript
12 Replies
4. Shell Programming and Scripting
How to compare new version exist of two path directory.
for e.g., path1 - /user/path/test/
path2 - /user/path/score/
If its exist new version then copy that new version into the first path directroy. How will do this. (3 Replies)
Discussion started by: roy1912
3 Replies
5. Shell Programming and Scripting
Hello to all,
I would like to search sequences of bytes inside big binary file.
The bin file contains blocks of information, each block begins is estructured as follow:
1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33.
2- Next... (59 Replies)
Discussion started by: Ophiuchus
59 Replies
6. Shell Programming and Scripting
I only want to find files under each branch of the directory tree inside directories named XYZ and there are multiple XYZ directories? (7 Replies)
Discussion started by: emc^24sho
7 Replies
7. Programming
Hi, I have 2 different values in the same column and two different values in other column
Query 1
ins name value
1 Test 12345
1 TestV1 12/10/2014
8 Test 85435
8 TestV1 11/11/2005
9 Test 42232
9 TestV1 19/10/2000
6 Test 54321... (6 Replies)
Discussion started by: faka
6 Replies
8. Shell Programming and Scripting
Given this file (I separated them in block to make my explanation clearer):
92157768877;Sof_deme_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0
92157768877;Sof_trav_Fort_Email_am_%yyyy%%mm%%dd%;EMAIL;20/02/2015;1;0;0
91231838895;Sof_deme_faible_Email_am;EMAIL;26/01/2015;1 0;0... (1 Reply)
Discussion started by: Andy_K
1 Replies
9. Shell Programming and Scripting
hi, I need to know if a specific directory exists in a folder named after the date of yesterday (02/06/2015)
The problem is simple but not how to do it. :confused:i= date -d "yesterday" '%Y-%m-%d' <- the format of directory is 2015-06-02
if in /var/logroot/index exist directory whit... (4 Replies)
Discussion started by: tmeto
4 Replies
10. UNIX for Beginners Questions & Answers
How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on:
$ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print
it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies
LEARN ABOUT DEBIAN
approx.conf
APPROX.CONF(5) File Formats Manual APPROX.CONF(5)
NAME
approx.conf - configuration file for approx proxy server
SYNOPSIS
/etc/approx/approx.conf
DESCRIPTION
Each non-blank line of the configuration file should contain a name/value pair, separated by white space. Comments start with a "#" char-
acter and continue to the end of the line.
Names that begin with the "$" character are reserved for use as configuration parameters. The following parameters are currently defined:
$cache Specifies the location of the approx cache directory (default: /var/cache/approx). It and all its subdirectories must be owned by
the approx server (see also the $user and $group parameters, below.)
$interval
Specifies the time in minutes after which a cached file will be considered too old to deliver without first checking with the remote
repository for a newer version (default: 60)
$max_rate
Specifies the maximum download rate from remote repositories, in bytes per second (default: unlimited). The value may be suffixed
with "K", "M", or "G" to indicate kilobytes, megabytes, or gigabytes per second, respectively.
$max_redirects
Specifies the maximum number of HTTP redirections that will be followed when downloading a remote file (default: 5)
$user, $group
Specifies the user and group that owns the files in the approx cache (default: approx)
$syslog
Specifies the syslog(3) facility to use when logging (default: daemon)
$pdiffs
Specifies whether to support IndexFile diffs (default: true)
$offline
Specifies whether to deliver (possibly out-of-date) cached files when they cannot be downloaded from remote repositories (default:
false)
$max_wait
Specifies how many seconds an approx(8) process will wait for a concurrent download of a file to complete, before attempting to
download the file itself (default: 10)
$verbose
Specifies whether informational messages should be printed in the log (default: false)
$debug Specifies whether debugging messages should be printed in the log (default: false)
The other name/value pairs are used to map distribution names to remote repositories. For example,
debian http://ftp.debian.org/debian
security http://security.debian.org
TCP PORT NUMBER
The port on which approx(8) listens is not specified in this file, but in /etc/inetd.conf. The default value is 9999, for compatibility
with apt-proxy(8), but it may be changed by running the command
dpkg-reconfigure approx
SEE ALSO
approx(8), approx-gc(8), inetd(8)
AUTHOR
Eric Cooper <ecc@cmu.edu>
Apr 2012 APPROX.CONF(5)