Sponsored Content
Full Discussion: Types of File in a directory
Top Forums UNIX for Dummies Questions & Answers Types of File in a directory Post 302381238 by Gussifinknottle on Thursday 17th of December 2009 02:40:26 PM
Old 12-17-2009
Question Types of File in a directory

Hello,

I have several thousand files with different extensions in a directory. Is there a single command to get what the various extensions are with a single command.

Thanks for your help!

Best,
Guss

Last edited by Scott; 12-17-2009 at 04:27 PM.. Reason: Removed font, color and size tags - post was almost unreadable
 

10 More Discussions You Might Find Interesting

1. Linux

File types help needed

Hi all, quick question... Im trying to configure Redhat 9 to dial out to my ISP AOL. I have found some software to do this but at present I can't get net access under Linux for the reason stated. I can however acces the net using my laptop running windows. The question is: I have downloaded... (3 Replies)
Discussion started by: brady9953
3 Replies

2. UNIX for Dummies Questions & Answers

What file types does unix support?

Hello, I've search this site many times and ave not been able to find my answer. So I'm going to post my question....(duh) Ok. I'm wanting to know what file types does unix support. if you can try and list them like this: php, .php or somthing like that. plus don't forget that I said I... (3 Replies)
Discussion started by: dgames
3 Replies

3. Filesystems, Disks and Memory

associated file types

I have a file of type .for extension .In a guui based unix environment like solaris if I double click on that file a specific program designed by me has to run which takes this file as the parameter and exceutes the program. Can anyone help me? (8 Replies)
Discussion started by: nhk_srd
8 Replies

4. UNIX for Dummies Questions & Answers

find directory with 2 types of files

Trying to use the find command to find any directory which contains a file ending in .zip AND a file ending in .o I'm having trouble specifying multiple files as criteria and have can't seem to figure it out from Unix in a Nutshell and Google. (2 Replies)
Discussion started by: dangral
2 Replies

5. Shell Programming and Scripting

Parsing a file that contains 2 types of delimeters

Now that I have a file that looks something like this; 20050926 Unknown 20050926 MUREXFO 20050926 MUREXFO 20050926 MUREXFO 20050926 Unknown 20050926 KADDUSS 20050926 KADDUSS 20050926 KADDUSS 20050926 MUREXFO Is there a way in vi that I can search the file and remove any line... (2 Replies)
Discussion started by: morgadoa
2 Replies

6. UNIX for Dummies Questions & Answers

How do I grep in specific file types?

I have a directory with file types ending .log, .mml, .gll, .dll . How can I grep expressions only in say the .log files? (3 Replies)
Discussion started by: bbbngowc
3 Replies

7. Red Hat

Copy certain file types recursively while maintaining file structure on destination?

Hi guys, I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash. I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Discussion started by: rockf1bull
1 Replies

8. Shell Programming and Scripting

Remove two types of files from a directory

Hi All, i need to move two types of files from a directory. I have used the below command to find the files from the directory.. SOURCE_DIR="some directory path" TARGET_DIR="Target Dir" Datestamp=Date_format find $SOURCE_DIR \( -name "*.log" -o -name "*.out" ) - exec ls -1 {} \; now i... (9 Replies)
Discussion started by: ch33ry
9 Replies

9. Shell Programming and Scripting

Cp -r except certain file types

the following excludes certain directories successfully cp -r probe/!(dir) /destination I want to exclude certain file types and tried unsuccessfully cp -r probe/!(*.avi) /destination (2 Replies)
Discussion started by: tmf
2 Replies

10. Shell Programming and Scripting

List file types

Hello everyone - I have a task of listing files from a directory together with their type. I tried using ls -l | file -b or different versions of that but that did not work. I will need this to be in a C shell script that will list the file name, size and type from a directory. I can do... (12 Replies)
Discussion started by: adrianvas12
12 Replies
ftpconversions(4)						   File Formats 						 ftpconversions(4)

NAME
ftpconversions - FTP Server conversions database SYNOPSIS
/etc/ftpd/ftpconversions DESCRIPTION
When the FTP Server, in.ftpd(1M), receives the retrieve (RETR) command, if the specified file does not exist, it looks for a conversion to change an existing file or directory of the same base name into the format requested, subject to the ftpaccess(4) compress and tar capabil- ities. The conversions and their attributes known by in.ftpd(1M) are stored in an ASCII file of the following format. Each line in the file pro- vides a description for a single conversion. The fields in this file are separated by colons (:). %s:%s:%s:%s:%s:%s:%s:%s 1 2 3 4 5 6 7 8 The fields are described as follows: 1 Strip prefix. 2 Strip postfix. 3 Addon prefix. 4 Addon postfix. 5 External command. 6 Types. 7 Options. 8 Description. The Strip prefix and Addon prefix fields are not currently supported. The Strip postfix and addon postfix fields are extensions to be added to or removed from the requested filename in attempting to produce the name of an existing file or directory. When the attempt succeeds, the FTP Server runs the external command associated with the conver- sion. The magic cookie %s in the argument is passed to the command, replaced with the name of the existing file or directory. External command is the absolute pathname of a command to run followed by the appropriate options to carry out the conversion. The standard output of the command is sent back in response to the RETR (retrieve) command. For anonymous and guest users to be able to execute the com- mand, it must be present in their chroot'd hierarchy along with any necessary dynamic libraries. Types specifies the conversion type. The following values are recognized: T_ASCII ASCII transfers are allowed of a file produced by the conversion. T_DIR Directories can be converted. T_REG Regular files can be converted. Options are checked against the ftpaccess(4) compress and tar capabilities and are recorded in the special-action-flag field that is writ- ten to the FTP Server logfile. See xferlog(4). The following options are supported: O_COMPRESS conversion compresses O_TAR conversion archives O_UNCOMPRESS conversion uncompresses You can specify more than one option by using "|" to separate options. For example, O_TAR|O_COMPRESS specifies that the conversion archives and compresses. Description is a one word description of the conversion that is used in error messages returned to the FTP client. Lines that begin with a # sign are treated as comment lines and are ignored. EXAMPLES
Example 1: Compressing a Regular File for Transfer The following example specifies a conversion which generates filename.Z by compressing an existing file filename. The conversion can only be applied to regular files, not directories, and the absence of T_ASCII prevents the resulting file from being transferred in ASCII mode. : : :.Z:/usr/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS Example 2: Uncompressing and Transferring in ASCII Mode The following example specifies a conversion that takes filename.Z and uncompresses it to produce filename, which then can be transferred in ASCII mode. :.Z: : :/usr/bin/compress -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS FILES
/etc/ftpd/ftpconversions ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpr | +-----------------------------+-----------------------------+ SEE ALSO
ldd(1), in.ftpd(1M), ftpaccess(4), xferlog(4), attributes(5) SunOS 5.10 1 May 2003 ftpconversions(4)
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy