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
GRUB-INSTALL(1) 					      General Commands Manual						   GRUB-INSTALL(1)

NAME
grub-install -- Install GRUB on a device. SYNOPSIS
grub-install [--modules=MODULES] [--install-modules=MODULES] [--themes=THEMES] [--fonts=FONTS] [--locales=LOCALES] [--compress[=no,xz,gz,lzo]] [-d | --directory=DIR] [--grub-mkimage=FILE] [--boot-directory=DIR] [--target=TARGET] [--grub-setup=FILE] [--grub-mkrelpath=FILE] [--grub-probe=FILE] [--allow-floppy] [--recheck] [--force] [--force-file-id] [--disk-module=MODULE] [--no-nvram] [--removable] [--bootloader-id=ID] [--efi-directory=DIR] INSTALL_DEVICE DESCRIPTION
grub-install installs GRUB onto a device. This includes copying GRUB images into the target directory (generally /boot/grub), and on some platforms may also include installing GRUB onto a boot sector. OPTIONS
--modules=MODULES Pre-load modules specified by MODULES. --install-modules=MODULES Install only MODULES and their dependencies. The default is to install all available modules. --themes=THEMES Install THEMES. The default is to install the starfield theme, if available. --fonts=FONTS Install FONTS. The default is to install the unicode font. --locales=LOCALES Install only locales listed in LOCALES. The default is to install all available locales. --compress=no,xz,gz,lzo Compress GRUB files using the specified compression algorithm. --directory=DIR Use images and modules in DIR. --grub-mkimage=FILE Use FILE as grub-mkimage. The default is /usr/bin/grub-mkimage. --boot-directory=DIR Use DIR as the boot directory. The default is /boot. GRUB will put its files in a subdirectory of this directory named grub. --target=TARGET Install GRUB for TARGET platform. The default is the platform grub-install is running on. --grub-setup=FILE Use FILE as grub-setup. The default is /usr/bin/grub-setup. --grub-mkrelpath=FILE Use FILE as grub-mkrelpath. The default is /usr/bin/grub-mkrelpath. --grub-probe=FILE Use FILE as grub-probe. The default is /usr/bin/grub-mkrelpath. --allow-floppy Make the device also bootable as a floppy. This option is the default for /dev/fdX devices. Some BIOSes will not boot images cre- ated with this option. --recheck Delete any existing device map and create a new one if necessary. --force Install even if problems are detected. --force-file-id Use identifier file even if UUID is available. --disk-module=MODULE Use MODULE for disk access. This allows you to manually specify either biosdisk or native disk access. This option is only avail- able on the BIOS target platform. --no-nvram Do not update the boot-device NVRAM variable. This option is only available on IEEE1275 target platforms. --removable Treat the target device as if it is removeable. This option is only available on the EFI target platform. --bootloader-id=ID Use ID as the bootloader ID. This opption is only available on the EFI target platform. --efi-directory=DIR Use DIR as the EFI System Partition root. This opption is only available on the EFI ta rget platform. INSTALL_DEVICE Install GRUB to the block device INSTALL_DEVICE. SEE ALSO
info grub Wed Feb 26 2014 GRUB-INSTALL(1)
All times are GMT -4. The time now is 10:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy