Sponsored Content
Full Discussion: Shell question
Top Forums UNIX for Dummies Questions & Answers Shell question Post 23943 by sskb on Tuesday 2nd of July 2002 03:17:05 PM
Old 07-02-2002
hi
I guess u need "find"

you can get more info with

man find

good luck!
sskb
sskb
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell command question

I'm running a select statmenet from shell script, sometimes the result for the select is no rows selected. my question is, can I find a command in the shell asking about the result of the select and if the result is no data found print any msg I want instead of just writting no rows selected.... (3 Replies)
Discussion started by: aya_r
3 Replies

2. Shell Programming and Scripting

shell question

Can someone please explain the PS1="${x##*/}\$ " ?? how does that lop off leading components? I don't understand it.. thanks cd ( ) { command cd "$@" Actually change directory x=$(pwd) Get current directory name into variable x PS1="${x##*/}\$ " ... (2 Replies)
Discussion started by: convenientstore
2 Replies

3. Shell Programming and Scripting

Shell script question

Hello, i am doing a project for school and i cannot figure out whats wrong with my 2 programs they dont seem to work at all. the first program is called isprime and naturally it checks to see if hte number is prime or not here is my code: #!/usr/bin/bash num=$1 echo you typed if ... (2 Replies)
Discussion started by: jbou1087
2 Replies

4. UNIX for Dummies Questions & Answers

Linux Shell Question: how to print the shell script name ?

Suppose I have a script named "sc.sh" in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies

5. UNIX for Dummies Questions & Answers

Shell Question

Hi All, I am having this problem and I can't find a decent answer anywere. I'am trying to perform multiple command in a shell script. For example mkdir test tar cvzf test.tar.gz test/ rmdir test The problem I get is that if I run this file as a cronjob, with a big "test" folder; the... (4 Replies)
Discussion started by: dswz
4 Replies

6. Programming

question on shell script

when i run a shell script i have to type ./my_prog and the first line of my_prog has to have #!/usr/bin/env bash how do i change it to i only have to type my_prog to run it? (4 Replies)
Discussion started by: omega666
4 Replies

7. Homework & Coursework Questions

question in shell script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a Bourne shell script which: • Has one command line argument. • If the command line argument is a... (5 Replies)
Discussion started by: abood1190
5 Replies

8. Shell Programming and Scripting

Shell question

Hi, I have this piece of code but I can not understand it in details and it is difficult to find in net. What is the function of the $, type, d and prefix here? This script wants to get each file from their directory. Thanks in advance. for i in $(find /file directory/ -type d | grep... (4 Replies)
Discussion started by: Homa
4 Replies

9. Shell Programming and Scripting

Shell question

Hallo everyone, I have this code: DBNAME=DB_001 EXPORTPATH=./work EXPORTDATUM=${1} EXPORTSQL=$(dirname $0)/export_script.sql EXPORTSQL_TMP=${EXPORTPATH}/export.sql READYFILE=${EXPORTPATH}/ready EXPORTFILE_PREFIX=file.csv ## Prüfungen if ; then echo "not found" exit 1 fi I am... (2 Replies)
Discussion started by: ratnalein88
2 Replies

10. Shell Programming and Scripting

Question regarding for shell scripting.

I tried to run a command which simply generates SSH key with out prompting password. After several trails , got the below command to run the script : ssh-keygen -t rsa -N "" -f id_rsa -N "" tells it to use an empty passphrase (the same as two of the enters in an interactive script) -f... (0 Replies)
Discussion started by: ulaxmi
0 Replies
DEBORPHAN(1)						      General Commands Manual						      DEBORPHAN(1)

NAME
deborphan - Orphaned package finder SYNOPSIS
deborphan [OPTION]... [PACKAGE]... DESCRIPTION
deborphan finds packages that have no packages depending on them. The default operation is to search only within the libs and oldlibs sec- tions to hunt down unused libraries. If it is invoked with an optional list of packages, only the dependencies on those packages will be checked. The results are printed to stdout as if the option --show-deps had been given. Searching for specific packages will show the package, regardless of its priority. It is possible to specify -, to read a list of packages from standard input. OPTIONS
-f, --status-file=FILE Use FILE as the status file. -h, --help Display a short help message and exit. -v, --version Display version information and exit. OUTPUT MODIFIERS -d, --show-deps Show a list of all installed packages and name the packages that depend on them. -P, --show-priority Show the priority of the packages found. -s, --show-section Show the sections the packages are in. --no-show-section Override showing sections when the default is to show them (see --all-packages). -z, --show-size Show the installed size of the packages found. SEARCH MODIFIERS -a, --all-packages Check all the packages, instead of only those in the libs section. Best used (if at all used) in combination with --priority. This option implies --show-section. -e, --exclude=LIST Excludes the packages named in LIST (a comma separated list) from the evaluation as if they didn't exist in the status file. -H, --force-hold Ignore "hold" dpkg-flags on packages and thus display these packages. Without this option packages with the "hold" flag set will not be displayed. Please refer to dpkg(1) for more information about package flags. Due a bug in aptitude (Debian bug #137771) hold flags created by aptitude are ignored by deborphan. --ignore-suggests --ignore-recommends Do not check if there is a package `suggesting' (--ignore-suggests) or `recommending' (--ignore-recommends) the package. When both options are used together, deborphan behaves as if the `nice-mode' mentioned below has been turned off. -n, --nice-mode Turn off nice-mode. Nice-mode checks if there is a package `suggesting' or `recommending' the package. If one is found, the pack- age will be marked as in use, or, when --show-deps is used, print out the package suggesting the package as if it were depending on it. -p, --priority=PRIORITY Show only those packages with a priority equal to, or greater than PRIORITY. PRIORITY may be in the range of 1-5, or one of required, important, standard, optional, extra. Default value for PRIORITY is 2 (important). --find-config This option searches for uninstalled packages which still have configuration files on the system. It implies the -a option. --libdevel Search in section libdevel in addition to libs and oldlibs. KEEP FILE MANAGEMENT -A, --add-keep PKG1...PKGn Add packages to the list of packages which are never to be reported, regardless of their state. You may specify '-' to use standard input. Note that package names are case-sensitive. -k, --keep-file=FILE Use FILE to store the list of kept-back packages. -L, --list-keep Show the list of packages that are being kept back. -R, --del-keep PKG1...PKGn Remove packages from the list of packages which are never to be reported. You may specify '-' to use standard input. If there are no dependencies for this package next time deborphan is invoked, it will be reported again. -Z, --zero-keep Purge the entire list of packages that are being kept back. The only option possible in combination with this option is -A. GUESSING --guess-* --no-guess-* deborphan can try to guess what packages may not be of much use to you by examining the package's name and/or description. It will pretend the package is in the main/libs section, and report it as if it were a library. This method is in no way perfect or even reliable, so beware when using this! It is also possible to tell deborphan e.g. to guess all interpreters but not Perl by using --guess-interpreters --no-guess-perl or to guess all but not Mono by using --guess-all --no-guess-mono. Please note that the --no-guess- option must occur after the --guess- option it modifies, this makes it possible to declare more complex things like to guess all, except interpreters but additionally try to guess perl. The following options are to be prefixed by --guess- or (except only) by --no-guess-: common This option tries to find common packages, i.e. packages with names ending in -common. data This option tries to find data packages, i.e. packages with names ending in -data. debug This option tries to find debugging libraries, i.e. packages with names ending in -dbg. dev This option tries to find development packages, i.e. packages with names ending in -dev. Also see option --libdevel. doc This option tries to find documentation packages, i.e. packages with names ending in -doc. dummy This option tries to find dummy packages, i.e. packages with dummy or transitional in their short description. kernel This option tries to find kernel-modules. It tries to match (-modules|^nvidia-kernel)-.*[0-9]+.[0-9]+.[0-9]+. interpreters Try to find all interpreter modules (i.e. imply ruby, pike, python, perl and mono). mono This option tries to find mono libraries. It tries to match ^libmono. perl This option tries to find perl modules. It tries to match ^lib.*-perl$. pike This option tries to find pike modules. It tries to match ^pike[[:digit:]]*-. python This option tries to find python modules. It tries to match ^python[[:digit:]]*-. ruby This option tries to find ruby modules. It tries to match ^lib.*-ruby[[:digit:].]*$. section This option tries to find libraries that were accidentally placed in the wrong section. It tries to match ^lib, but not if it ends in one of: -dbg, -doc, -perl, or -dev. all Try all of the above. only Ignore the package's section completely, and just go for the name and/or description. This option must be used in conjunction with one or more of the --guess options listed above, or deborphan will not display anything. FILES
/var/lib/dpkg/status Statuses of available packages. See the section INFORMATION ABOUT PACKAGES in dpkg's man-page for more information. /var/lib/deborphan/keep A newline-separated list of packages to keep. Package names are in no particular order. SEE ALSO
dpkg(8), dselect(8), orphaner(8), editkeep(8), cruft(8), xargs(1) BUGS
If you report a bug, please include your /var/lib/dpkg/status file. That would help in reproducing the bugs. AUTHORS
deborphan was written by Cris van Pelt <"Cris van Pelt"@tribe.eu.org>, then maintained by Peter Palfrader <weasel@debian.org> but is nowa- days maintained Carsten Hey <c.hey@web.de> deborphan February 2009 DEBORPHAN(1)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy