Visit The New, Modern Unix Linux Community

Top Forums Shell Programming and Scripting How do I rewrite to use a while instead of find? Post 302106090 by sb008 on Tuesday 6th of February 2007 01:20:30 PM
ls /home/Upload/* > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "There are no files present."
else
for FILE in `find /home/Upload/*`
do
...........
done
fi
 
Test Your Knowledge in Computers #653
Difficulty: Easy
Rocky Raccoon is the mascot of MINIX 3.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Apache Rewrite help!

I am trying to write RewriteRule on Apache_1.3.26 to get users web page from another server. for example if users tries to get web page on www.somedomain.com/~usersname it will get the web page from www.testdomain.com/~username without redirect and users will not be aware of any redirect... (1 Reply)
Discussion started by: hassan2
1 Replies

2. Shell Programming and Scripting

grep help, how do i rewrite this

Thanks , franklin you method worked, i knew i had to use a while loop and getline in there just didnt know the proper order :) Hi everyone, im trying to make the following command line shorter by introducing a script that join up all the grep commands ./new1a < numbers.txt | grep -i -v '^a '... (5 Replies)
Discussion started by: weezybaby
5 Replies

3. UNIX for Dummies Questions & Answers

rewrite date

I'm looking to have function that takes the present month and rewrites it into this form: _06_ (june), _09_ (september), and so on.. I would like this to be a my $this_month=code that rewrites date function because I would like to be a able to call it multiple times in the script by writing... (5 Replies)
Discussion started by: marringi
5 Replies

4. Web Development

.htaccess Rewrite Rule

Hello All, I have been asked to create a .htaccess redirect. I have never attempted to work with one of these files. We have a pretty vanilla LAMP setup using rhel4 apache1.3 and php4.2.3. I was instructed to place the .htaccess file in the document root of the site and and to attempt to... (1 Reply)
Discussion started by: jaysunn
1 Replies

5. Web Development

Need help with rewrite rule

Hi, I hosted my site on Apache web server. I wanted to redirect all the users request to a HTML page(maintenance page). I used the below rewrite rule to do ths same. RewriteEngine on RewriteRule .* /maintenance.html The maintenance.html page contains an image. When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
2 Replies

6. UNIX for Advanced & Expert Users

Sendmail Rewrite Ruleset

Hi all, I like to write a rule which do the following: INPUT ADDRESS REWRITTEN TO ----------------------------- ----------------------------- foo.bar@sub.domain.com bar@domain.com foo@othersub.domain.com ... (1 Reply)
Discussion started by: bashily
1 Replies

7. Linux

Rewrite proxypass

Hi, I have a Apache 2.0 web server. When a users comes in to sitea.com a check is applied if the path ends with *t*, the user hits a rewrite rule that adds an environment variable called x is hit with a proxypass. This has worked successfully in the past, but recently I added another rewrite... (0 Replies)
Discussion started by: 3junior
0 Replies

8. Web Development

Rewrite wrong request

Hi everybody, In my web site I have several index pages in different languages in the following format http://www.mysite.com/lang_index.htmlTwo days ago I noticed increased, many times. Google bot activity on my site and when I checked my log file I found that all pages crawled were wrong... (3 Replies)
Discussion started by: georgi58
3 Replies
dpkg-genchanges(1)						    dpkg suite							dpkg-genchanges(1)

NAME
dpkg-genchanges - generate Debian .changes files SYNOPSIS
dpkg-genchanges [option...] DESCRIPTION
dpkg-genchanges reads information from an unpacked and built Debian source tree and from the files it has generated and generates a Debian upload control file (.changes file). OPTIONS
--build=type Specifies the build type from a comma-separated list of components (since dpkg 1.18.5). The allowed values are: source Upload the source package. any Upload the architecture specific binary packages. all Upload the architecture independent binary packages. binary Upload the architecture specific and independent binary packages. This is an alias for any,all. full Upload everything. This is alias for source,any,all, and the same as the default case when no build option is specified. -g Equivalent to --build=source,all (since dpkg 1.17.11). -G Equivalent to --build=source,any (since dpkg 1.17.11). -b Equivalent to --build=binary or --build=any,all. -B Equivalent to --build=any. -A Equivalent to --build=all. -S Equivalent to --build=source. The -sx options control whether the original source archive is included in the upload if any source is being generated (i.e. -b or -B haven't been used). -si By default, or if specified, the original source will be included only if the upstream version number (the version without epoch and without Debian revision) differs from the upstream version number of the previous changelog entry. -sa Forces the inclusion of the original source. -sd Forces the exclusion of the original source and includes only the diff. -vversion Causes changelog information from all versions strictly later than version to be used. -Cchanges-description Read the description of the changes from the file changes-description rather than using the information from the source tree's changelog file. -mmaintainer-address Use maintainer-address as the name and email address of the maintainer for this package, rather than using the information from the source tree's control file. -emaintainer-address Use maintainer-address as the name and email address of the maintainer for this upload, rather than using the information from the source tree's changelog. -Vname=value Set an output substitution variable. See deb-substvars(5) for a discussion of output substitution. -Tsubstvars-file Read substitution variables in substvars-file; the default is debian/substvars. No variable substitution is done on any of the fields that are output, except for the contents extracted from each binary package Description field (since dpkg 1.19.0), however the special variable Format will override the field of the same name. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). -Dfield=value Override or add an output control file field. -Ufield Remove an output control file field. -ccontrolfile Specifies the main source control file to read information from. The default is debian/control. -lchangelog-file Specifies the changelog file to read information from. The default is debian/changelog. -ffiles-list-file Read the list of files to be uploaded here, rather than using debian/files. -Fchangelog-format Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats. -uupload-files-dir Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genchanges needs to find these files so that it can include their sizes and checksums in the .changes file). -q Usually dpkg-genchanges will produce informative messages on standard error, for example about how many of the package's source files are being uploaded. -q suppresses these messages. -O[filename] Print the changes file to standard output (the default) or to filename if specified (since dpkg 1.18.5). -?, --help Show the usage message and exit. --version Show the version and exit. FILES
debian/files The list of generated files which are part of the upload being prepared. dpkg-genchanges reads the data here when producing a .changes file. SEE ALSO
deb-substvars(5), deb-src-control(5), deb-src-files(5), deb-changelog(5), deb-changes(5). 1.19.0.5 2018-04-16 dpkg-genchanges(1)

Featured Tech Videos

All times are GMT -4. The time now is 12:20 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy