Greetings,
my 2 cents:
I have not much time to understand all you are trying here and I dont use bash...
So my remarks would be more like "If you were using /usr/bin/sh, ..."
1) The beginning:
your main:
Since I dont use bash for me it will be difficult to say what is not working...
In sh though I doubt it can be done that way...
Why are you not using basic sh ( for compliance...)?
So now you have the beginning in working order
Explain me your choice for your while loop (If it should work in bash, Im no help...)
Hi there,
I hope someone can help me with this problem :
I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus :
prefix-date-key-suffix.jpg
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Hello, my first post!
I'd appreciate help with this script, I'm new to this.
I have a media directory where I want to batch convert image file names from .img to .iso.
I've tried but get:
$ ./img2iso2.sh
./img2iso2.sh: line 13: syntax error: unexpected end of file :(
This is my... (10 Replies)
Hi All,
I have a status.txt file which contains following three files.
1.xml
2.xml
3.xml
Now i have written a shell script 1.sh which contains the following
cat status.txt | while read filename
do
echo $filename
case "$filename" in
xml)
echo "running 1.xml"
;;
... (3 Replies)
I searched the forum, but there was different type of rename.
Hello.
I have files in folder.
Like:
xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz
and how to rename or change file extension case to
xxxxxxxx1.htm
or
xxxxxxx2.TXT
or (5 Replies)
Hi all,
i have a data array as followes.
ARRAY=DFSG345GGG
ARRAY=234FDFG090
ARRAY=VDFVGBGHH
so on..........
i need all english letters to be change to lower case. So i am expecting to see
ARRAY=dfsg345ggg
ARRAY=234fdfg090
ARRAY=vdfvgbghh
so on........
If i have to copy this data in... (8 Replies)
Is there a command that can switch a character variable from UPPER case to lower case?
like
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
...
end
Thanks a lot! (3 Replies)
I have a directory that contains several files, out of which some files are have an extra extension for example
file1.new.new.new
file2.new.new.new
file3.new.new.new
file4.new.new.new
i want to write a shell script that rename all such file with only single extension like
file1.new... (7 Replies)
Hi all,
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Hi Guys,
i am trying to redirect a file wherein i need to change the extension of the file from .sh to .tmp, but getting an error
a=test.txt
sh test.txt > path/$(basename "$a" .sh).tmp
i need
test.tmp
---------- Post updated at 02:09 AM ---------- Previous update was at... (3 Replies)
In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
dh-make-pear
DH-MAKE-PEAR(1) dh-make-pear User Manual DH-MAKE-PEAR(1)NAME
dh-make-pear - Create debian source packages from pear modules
SYNOPSIS
dh-make-pear [--help ] [--version ] [--rename ] [--arch any | all] [--state STATE] [--depends DEPENDS] [--maintainer MAINTAINER]
[--prefix PREFIX] [--templatedir TEMPLATEDIR] [PACKAGE]
DESCRIPTION
This manual page documents briefly the dh-make-pear command.
dh-make-pear creates the files required to build a debian source package from a PHP extension as it is distributed through PEAR.
The last parameter passed to dh-make-pear can be either the .tgz archive containing the php extension or the name of the extension. In the
second case dh-make-pear will first download the archive from http://pear.php.net. If dh-make-pear downloads the archive itself, it will
always take the most recent version.
dh-make-pear will by default create a directory named php-<pear-package-name> which will contain the debian files and the unpacked files
from the extension. It will also create a symlink php-<pear-package-name>_<version>.orig.tar.gz pointing towards the original source. After
creating the files you can go into then new directory and build the debian package with dpkg-buildpackage -rfakeroot.
dh-make-pear tries to extract as much information about the package from the file package.xml which is part of the pear extension.
Debian source packages created by dh-make-pear can later easily be updated with uscan.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below. For a complete description, see the Info files.
-h --help
Show summary of options.
-v --version
Show version of program.
--rename
Do not link orig.tar.gz but move the source into .orig.tar.gz.
--arch
Set architecture of created debian source package to 'any' or 'all'. Defaults to 'all'.
--state
Set preferred state for downloaded package. Defaults to 'stable'.
--depends
Adds more packages to Depends: beside php-pear.
--prefix
Sets prefix of debian source package name. Each name ends in '<pear-package-name>'. Defaults to 'php-'.
--maintainer
Explicitly sets the maintainer. In most cases it will be propperly guessed by reading some of the environment variables.
--templatedir
Use a different directory with templates for the debian files. Defaults to /usr/share/dh-make-php/pear.template.
ENVIRONMENT
DEBFULLNAME - get the real name of the maintainer
LOGNAME or USER - get the username
DEBEMAIL or EMAIL - get the email address of the user
SEE ALSO
dh-make-pecl (1).
AUTHOR
UWE STEINMANN <steinm@debian.org>
Wrote this manpage for the Debian system.
COPYRIGHT
Copyright (C) 2004-2010 Uwe Steinmann
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.
dh-make-pear 09/01/2010 DH-MAKE-PEAR(1)