Sponsored Content
Full Discussion: this helps me out big time
Top Forums UNIX for Dummies Questions & Answers this helps me out big time Post 7172 by jerzey4life on Thursday 20th of September 2001 12:32:53 AM
Old 09-20-2001
MySQL this helps me out big time

ever since i started playing with unix at work i have found all kinds of helpful tools that my companie has added into our /usr/bin/

this is the one that helped the most


""""""ldr"""""""
Code:
#!/bin/sh
#
#  @(#) %filespec: ldr-2 %  %date_modified: Wed Sep  6 09:54:07 2000 %
#
#         Module:  ldr
#
#         List directories.
#         If directory name is not specified, list directories
#         under current directory.
#
#         Usage:  <ldr [dir name]>
#

if test $# -lt 1
then
   DIR="."
else
   DIR=$1
fi

for arg in $DIR/*
do
   if [ -d $arg ]
   then
      echo `basename $arg`
   fi
done
exit 0  
#
#
#
##########################################


lists all your dirs in the dir that your in


Smilie Smilie Smilie Smilie Smilie Smilie Smilie

added code tags for readability --oombera

Last edited by oombera; 02-18-2004 at 04:05 PM..
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to view a big file(143M big)

1 . Thanks everyone who read the post first. 2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too. How to view it ? If I want to view 200-300 ,how can I implement it 3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies

2. Shell Programming and Scripting

need help big time

solved (1 Reply)
Discussion started by: rockbike
1 Replies

3. UNIX for Dummies Questions & Answers

How big is too big a config.log file?

I have a 5000 line config.log file with several "maybe" errors. Any reccomendations on finding solvable problems? (2 Replies)
Discussion started by: NeedLotsofHelp
2 Replies

4. UNIX for Dummies Questions & Answers

gref -f taking long time for big file

grep -f taking long time to compare for big files, any alternate for fast check I am using grep -f file1 file2 to check - to ckeck dups/common rows prsents. But my files contains file1 contains 5gb and file 2 contains 50 mb and its taking such a long time to compare the files. Do we have any... (10 Replies)
Discussion started by: gkskumar
10 Replies

5. Red Hat

Du -sh command taking time to calculate the big size files

Hi , My linux server is taking more time to calculate big size from long time. * i am accessing server through ssh * commands # - du -sh * #du -sh * | sort -n | grep G Please guide me for fast way to find big size directories under to / partition Thanks (8 Replies)
Discussion started by: Nats
8 Replies

6. Homework & Coursework Questions

Makefile helps

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: The code in project2 is for a program that formats C++ code into HTML for presentation in a webpage. For example,... (1 Reply)
Discussion started by: dhnguyen0708
1 Replies
INSTALL-INFO(1) 						   User Commands						   INSTALL-INFO(1)

NAME
ginstall-info - update info/dir entries SYNOPSIS
ginstall-info [OPTION]... [INFO-FILE [DIR-FILE]] DESCRIPTION
Add or remove entries in INFO-FILE from the Info directory DIR-FILE. OPTIONS
--debug report what is being done. --delete delete existing entries for INFO-FILE from DIR-FILE; don't insert any new entries. --description=TEXT the description of the entry is TEXT; used with the --name option to become synonymous with the --entry option. --dir-file=NAME specify file name of Info directory file; equivalent to using the DIR-FILE argument. --dry-run same as --test. --entry=TEXT insert TEXT as an Info directory entry. TEXT is written as an Info menu item line followed by zero or more extra lines starting with whitespace. If you specify more than one entry, all are added. If you don't specify any entries, they are determined from information in the Info file itself. When removing, TEXT specifies the entry to remove. TEXT is only removed as a last resort, if the entry as determined from the Info file is not present, and the basename of the Info file isn't found either. --help display this help and exit. --info-dir=DIR same as --dir-file=DIR/dir. --info-file=FILE specify Info file to install in the directory; equivalent to using the INFO-FILE argument. --item=TEXT same as --entry=TEXT. --keep-old do not replace entries, or remove empty sections. --menuentry=TEXT same as --name=TEXT. --name=TEXT the name of the entry is TEXT; used with --description to become synonymous with the --entry option. --no-indent do not format new entries in the DIR file. --quiet suppress warnings. --regex=R put this file's entries in all sections that match the regular expression R (ignoring case). --remove same as --delete. --remove-exactly only remove if the info file name matches exactly; suffixes such as .info and .gz are not ignored. --section=SEC put entries in section SEC of the directory. If you specify more than one section, all the entries are added in each of the sections. If you don't specify any sections, they are determined from information in the Info file itself. --section R SEC equivalent to --regex=R --section=SEC --add-once. --silent suppress warnings. --test suppress updating of DIR-FILE. --version display version information and exit. REPORTING BUGS
Email bug reports to bug-texinfo@gnu.org, general questions and discussion to help-texinfo@gnu.org. Texinfo home page: http://www.gnu.org/software/texinfo/ COPYRIGHT
Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for ginstall-info is maintained as a Texinfo manual. If the info and ginstall-info programs are properly installed at your site, the command info ginstall-info should give you access to the complete manual. ginstall-info 4.13 September 2008 INSTALL-INFO(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy