![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Initiative helps farmers in rural India using OSS | iBot | UNIX and Linux RSS News | 0 | 03-26-2008 11:50 AM |
| New Tool Helps Lock Down Linux - Dark Reading | iBot | UNIX and Linux RSS News | 0 | 08-13-2007 12:00 PM |
| Linux helps Oracle databases edge IBM - Techworld.com | iBot | UNIX and Linux RSS News | 0 | 06-19-2007 03:00 AM |
| hpux admin tutorial online helps or links | hpux2006 | UNIX for Dummies Questions & Answers | 2 | 08-30-2006 05:19 PM |
| How does an Administrator helps Progremmers | sol8admin | SUN Solaris | 2 | 02-09-2005 02:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 added code tags for readability --oombera
__________________
Remember Kiddys Unix is DOS for ADULTS Last edited by oombera; 02-18-2004 at 01:05 PM. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
ls -lR|grep ^d|awk '{ print $9 }'
Last edited by Optimus_P; 09-20-2001 at 06:44 AM. |
|
#3
|
|||
|
|||
|
DIR
While on the subject.
If you would like to navigate a little faster this help a lot move to the root dirrectory / /du > ( new filename ) #################### du = summarize disk usage ( by listing dirrec...) > basically moves the out of du into a file of your own. Have fun. |
|
#4
|
|||
|
|||
|
DIR
While on the subject.
If you would like to navigate a little faster this help a lot move to the root dirrectory / /du > ( new filename ) #################### du = summarize disk usage ( by listing dirrec...) > basically moves the output of du into a file of your own. Have fun. |
|
#5
|
|||
|
|||
|
thanks, thats some good stuff.
|
|||
| Google The UNIX and Linux Forums |