Search Results

Search: Posts Made By: melearlin
1,331
Posted By melearlin
excluding root directory when searching
I'm writing a script that executes over several subdirectories that looks like this:


cd companies
#find . -print -type d |
find . -type d -print |
while read dirname
do
cd $dirname
#...
6,050
Posted By melearlin
Thanks, this is exactly what I was looking for. ...
Thanks, this is exactly what I was looking for.

edit: This is the current state of my code, and it almost does what I'm looking for--how can I make the loop exclude the root directory companies? I...
6,050
Posted By melearlin
runnning a shell script in multiple folders
Hey everyone, I'm fairly new to both unix and shell scripts. Right now I have a script that I can run in one folder (if a certain text file is there, do one thing, if it's not, do something else). I...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy