Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-26-2009, 06:18 AM   #16
LQ Newbie
Registered: Dec 2007
Posts: 13

Original Poster
Rep: Reputation: 0

Dear schneidz ,

Both the code you added with your recent post works but it prints all the folders name so it includes the folders which has a .cm file. .cm files is simple text file .

Your help is much appreciated!

Old 02-26-2009, 09:16 AM   #17
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,147

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
i am stuck at work rite now with a win-xp machine so i am unable to test it but this is what i think it does:
for dir in u* # create a list of all dirs that begin with u
 if [ ! -f $dir/*.cm ] # if u*/*.cm does not exist
  echo $dir # print out u*
done # go to next u*


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change file permissions of files in folders dotancohen Linux - Newbie 1 05-19-2007 02:56 AM
Folders, and Mounts and File associations in KDE wombat53 Slackware 9 10-02-2005 10:18 PM
Desktop File Folders don't work Keithj Linux - Software 1 06-14-2005 12:25 PM
File moving on mounted folders from Java zeshanzia Programming 0 03-11-2005 01:00 AM
Changing file permissions within multiple folders cloudxiii Linux - Newbie 1 02-21-2005 12:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration