Sponsored Content
Top Forums UNIX for Dummies Questions & Answers subfolders help please important Post 55790 by zazzybob on Monday 20th of September 2004 05:29:21 AM
Old 09-20-2004
Following on from Drivers post above, you could use
Code:
find . -name "*.exe" -exec ls -l {} \;

to produce an ls -l style listing, if that's what you want.

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TAR (Extract with subfolders)

Hi! I've uploaded a .tar file (created with Windows) containing my homepage to my webserver. Now I'd like to extract the file on the server. I can do that with SSH. BUT:: If i enter this command: tar -xf homepage.tar only the files in the root directory of the file get extracted.... (2 Replies)
Discussion started by: roberthawke
2 Replies

2. UNIX for Dummies Questions & Answers

rename files in subfolders

Hello i have this script : foreach f ($1/*.cpp ) mv $f $f:r.c end that renames me files in dir , how can i change it so it will rename me also in subdirectorys? thanks (0 Replies)
Discussion started by: umen
0 Replies

3. Shell Programming and Scripting

How to create folders/subfolders using shellscript

Hi, Can any one help me how to create folders using shellscript.My requirement is: FolderName: Main/Main1 :Main/Main2 :Main/Main3 underSubFolder : Main1/A :Main1/B :Main1/C underSubfolder: A/A1 ... (2 Replies)
Discussion started by: ram2s2001
2 Replies

4. UNIX for Dummies Questions & Answers

Last Modified Date for subfolders

Sorry for the basic question, but I have a feeling that my developers are circumventing our change control process, and I want to be able to easily keep track of the last modified date of sub-folders of the production folder. Basically, we have this major folder PROD, and then each application... (1 Reply)
Discussion started by: saint01
1 Replies

5. Shell Programming and Scripting

Search in folder and subfolders

How can this be done? I mean, I want to search for all *png *jpg *bmp files in my ~/Pictures/ folder....How can I list them? Thank you geeks :) :b: (2 Replies)
Discussion started by: hakermania
2 Replies

6. Shell Programming and Scripting

grep to search the subfolders

Hi everybody, I am trying to grep abcds in one folder and in all its subfolders! but it does not work! would you help please? thanks. (3 Replies)
Discussion started by: messi777
3 Replies

7. UNIX for Dummies Questions & Answers

Need help in checking for files in subfolders

Hi, I am trying to print a listing of files from the top level directory, check to see if any files have the same name as the top level directory name and if so, cd to that file and list the files under it. Don't know how to check for the file in the next level. What I have so far: ... (6 Replies)
Discussion started by: tes218
6 Replies

8. Shell Programming and Scripting

number of subfolders

Hello people i need your help, am still new at unix, How do you find the number of subfolders in a certain or current directory?? (4 Replies)
Discussion started by: donc123
4 Replies

9. AIX

Help with listing only subfolders

Hi All, I have a AIX file system with a folder structure like this /1 /1/2 /1/2/3/5 /1/2/3/2 /2 /2/3/4 /2/5/6 I would like to list subdirectories /1/2/3/5 /1/2/3/2 /2/3/4 /2/5/6 Can you please help me with this issue. (6 Replies)
Discussion started by: kavinmjr
6 Replies

10. UNIX for Beginners Questions & Answers

Find for files within a list of subfolders

Helo Is there a better way to search within a list of subfolders : A_START_PATH="/data_1/data_2" # # dir2, dir3, dir6, ..... dir59 exists # A_LIST="$A_START_PATH/dir1 $A_START_PATH/dir4 $A_START_PATH/dir5" find "$A_LIST" -type f -name"*.txt" Now searching for all files in any subdirs... (2 Replies)
Discussion started by: jcdole
2 Replies
scan(1mh)																 scan(1mh)

Name
       scan - produce a one-line-per-message scan listing

Syntax
       scan [ +folder ] [ msgs ] [ options ]

Description
       The command produces a one-line-per-message listing of the messages in the current folder.

       You can scan a folder other than the current folder by using the +folder argument.  You can use the msgs argument to produce a scan listing
       of a number of messages or a range of messages in the specified folder.	You can also use in conjunction with a message sequence defined by
       or See for more information on sequences.

       Each line contains the message number, the date, the From: field, the Subject: field, and, if room allows, some of the body of the message.
       The current message is marked with a plus sign (+).

       The command actually reads each of the specified messages and parses them to extract the desired fields.  If format errors are found in any
       of the messages during parsing, produces appropriate error messages.

       Because MH has been configured with the BERK option, has two additional options: -reverse and -noreverse.  In addition, updates the MH con-
       text prior to starting the listing, so interrupting a long listing preserves the new context.  The default configuration file that is  sup-
       plied with MH has the BERK option enabled.

       If  encounters  a  message  without  a  Date:  field, the date is filled in with the last write date of the message, and an asterisk (*) is
       appended.  This is useful for identifying unsent message drafts.  Unsent drafts are not usually allowed to contain a Date: field,  and  are
       consequently marked with an asterisk in listings.

Options
       -clear
       -noclear  Directs  to  clear the screen.  If the -clear switch is used and the output of is directed to a terminal, then consults the $TERM
		 and $TERMCAP environmental variables to determine your terminal type in order to find out how to clear the screen prior to  exit-
		 ing.  If the -clear switch is used and the output of is not directed to a terminal, then sends a formfeed prior to exiting.

       -form formatfile
		 Re-formats  the  output  of according to the instructions in the named file.  The named formatfile must be in style; see for more
		 details.

       -format string
		 Re-formats the output of according to the instructions in the string given.  The string must be in style; see for  more  details.
		 You must place the string argument to this command in double quotes (").

       -header
       -noheader Produces a header line prior to the listing.  The header line displays the name of the folder and the date and time.  This can be
		 suppressed using the -noheader option.

       -help	 Prints a list of the valid options to this command.

       -reverse
       -noreverse
		 Lists the output from in reverse order, from the highest message number to the lowest.  The -noreverse option lists  messages	in
		 the conventional way, from lowest to highest numbers.	The -noreverse option is the default.

       -width columns
		 Specifies the width of your screen, in columns.

       The defaults for this command are as follows:

	      +folder defaults to the current folder
	      msgs defaults to all
	      -noheader
	      -width defaults to the width of the terminal

Examples
       The following example produces a listing of messages 11 through 15 in the folder
       % scan +inbox 11-15
	 11  18/01 ralph	      Project Plan Meeting Monday<<This
	 12 -21/01 johnson	      squash<<Thought i might postpone
	 13  21/01 smith@ultrixhost   support from US during conversion
	 14  21/01 jjones@subone.dne  new forum for discussion of mail
	 15+ 21/01 calvin@hobbes.uuc  Re: new forum for discussion of m
       In this listing, the plus sign (+) on message 15 indicates that it is the current message.  The hyphen (-) on message 12 indicates that you
       have replied to the message.  It is produced by the -annotate option to see for more information.  If there is sufficient room left on  the
       line after the subject, fills the line with text from the body, preceded by <<, and terminated by >> if the body is sufficiently short.

Profile Components
       Path:		      To determine your Mail directory
       Alternate-Mailboxes:   To determine your mailboxes

Files
       The user profile.

See Also
       inc(1mh), mark(1mh), pick(1mh), show(1mh), mh-format(5mh)

																	 scan(1mh)
All times are GMT -4. The time now is 03:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy