this helps me out big time


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers this helps me out big time
Prev   Next
# 1  
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..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. Shell Programming and Scripting

need help big time

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

6. 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
Login or Register to Ask a Question