9 More Discussions You Might Find Interesting
1. Ubuntu
Hi folks,
Ubuntu 9.04
I have an old box not running for years. I just dig it out from the store room. On running;
$ sudo aptitude update
......
......
Err http://hk.archive.ubuntu.com jaunty/main Packages
404 Not Found
Err http://hk.archive.ubuntu.com jaunty/restricted Packages
... (1 Reply)
Discussion started by: satimis
1 Replies
2. Shell Programming and Scripting
I'm working on implementing a mail indexer and it currently saves every file with a series of numbers with no extension. ex. 021545545544
I was wondering if someone could point me in the correct direction for a script that would check all the files and give it a .eml extension if it doesn't... (1 Reply)
Discussion started by: binary-ninja
1 Replies
3. Shell Programming and Scripting
Trying to write program to archive files from a file system.
I got some problem with appropriate selection of files in regard to size.
Algorithm basic :
-----------------
1. Remotely executes on machine ls cmd and its output redirects and sorts by size of a files :
# cd... (0 Replies)
Discussion started by: presul
0 Replies
4. Shell Programming and Scripting
for some reason my code does not give the right number of files. can omeone help me please? (2 Replies)
Discussion started by: andrew1400
2 Replies
5. Shell Programming and Scripting
I want to add a .txt extension to all files in a directory and it's sub directories.
So far I have managed to come up with this for the current directory but how do I do this recursively?
for e in *; do mv "$e" "`echo $e | sed -e 's/\ /_/g'`.txt"; done
Thanks (5 Replies)
Discussion started by: lewk
5 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
7. Shell Programming and Scripting
The below tar command works fine for me,
tar -cvf - `find ./srcdir -type d` | (cd ./destdir ; tar -xvf - )
but this version is giving error to me:
cd ./srcdir &&
tar -cf - . |
gzip -9 |
cd ../destdir &&
gzip -d |
tar -xf -
error is: gzip: compressed data not read from a terminal.... (2 Replies)
Discussion started by: royalibrahim
2 Replies
8. Shell Programming and Scripting
Hey,
How to strip the extention from filename?
MY_XML.xml -> MY_XML
MY_TEST_FILE.txt -> MY_TEST_FILE
HELLO_WORLD.xls -> HELLO_WORLD
Thanks in advance! (2 Replies)
Discussion started by: mpang_
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I still don't know if there's a standard way to do this. I'm hoping there's a *more or less* standard way to do this across linux platforms but the platform in question is Gentoo.
Let's say I download a source tarball as tar.gz and I do the typical
gunzip app_to_install.tar.gz
tar xvf... (2 Replies)
Discussion started by: d11wtq
2 Replies
DH_GENCONTROL(1) Debhelper DH_GENCONTROL(1)
NAME
dh_gencontrol - generate and install control file
SYNOPSIS
dh_gencontrol [debhelperoptions] [--params]
DESCRIPTION
dh_gencontrol is a debhelper program that is responsible for generating control files, and installing them into the DEBIAN directory with
the proper permissions.
This program is merely a wrapper around dpkg-gencontrol(1), which calls it once for each package being acted on (plus related dbgsym
packages), and passes in some additional useful flags.
Note that if you use dh_gencontrol, you must also use dh_builddeb(1) to build the packages. Otherwise, your build may fail to build as
dh_gencontrol (via dpkg-gencontrol(1)) declares which packages are built. As debhelper automatically generates dbgsym packages, it some
times adds additional packages, which will be built by dh_builddeb(1).
OPTIONS
-- params
Pass params to dpkg-gencontrol(1).
-uparams, --dpkg-gencontrol-params=params
This is another way to pass params to dpkg-gencontrol(1). It is deprecated; use -- instead.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_GENCONTROL(1)