Sponsored Content
Full Discussion: Files without extension
Operating Systems HP-UX Files without extension Post 302245107 by jim mcnamara on Thursday 9th of October 2008 11:06:38 AM
Old 10-09-2008
Who knows what files those are....

Before you do anyhting, try this command
Code:
file filename

where filename is one of those problem files. This tells you what kind of file you are seeing. If it is a text or ascii file you cannot just "type it". try
Code:
cat filename

to display the contents of the ascii/text files

When you get stuck try "ctrl-c" - that means push down the control key, hold it down, then press the c key. Let go both keys.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get files with a specific extension

Hi All, How do I get only the files with the .csv extension. I have a shell script something like below: #!/usr/bin/ #Directory to scan for files SCANDIR="/cmb/data/exstream/scriptslogs/"; LOGFILE="/cmb/data/exstream/scriptslogs/test.log"; cd $SCANDIR for FILE in * ; do FILENAME=$FILE... (9 Replies)
Discussion started by: janavenki
9 Replies

2. Linux

copying all files except those with certain extension

Hi, I have a root directory which has a big number of other subdirectories and contains a big number of files. I want to copy all these files and directories to another folder except files with certain extension, say .txt, files - how may I do this? Thanks, faizlo (8 Replies)
Discussion started by: faizlo
8 Replies

3. Shell Programming and Scripting

Reading extension of files

Hi, I need a command to read extension of files. Could anyone please help me? (14 Replies)
Discussion started by: priyadarshini
14 Replies

4. Shell Programming and Scripting

gzip files with extension

Hi, I have 1000 of files in a folder with the file extension as .csv In this some of the files are already zipped and its looks like filename.csv.gz Now i need to zip all the files in the folder to free some disk space. When i give gzip *.csv It prompts me to overwrite filename.csv.gz... (5 Replies)
Discussion started by: nokiak810
5 Replies

5. UNIX for Dummies Questions & Answers

How do I delete all files except one of a certain extension?

Let's say I wanna Delete all the files of a certain extension exept one. How do I do it? I know, if you wanna delete them all is with the command: find ~/ -type f -iname '*.txt' -exec rm {} ~/ ';' But If I want to keep an Specific file? Let's say I wanna keep 'Log.txt'. How do I do it? (1 Reply)
Discussion started by: lsteamer
1 Replies

6. UNIX for Dummies Questions & Answers

How to list files with no extension together with *.prog files?

Hi, I know that to list files with no extension, we can use.. ls -1 | grep -v "\." And to list .prog files, we can use.. ls -1 *.prog or ls -1 | grep '.prog$' (4 Replies)
Discussion started by: adshocker
4 Replies

7. Shell Programming and Scripting

Replacing extension of files

hi, i am having a certain files in a folder where i need to replace the extension with similar file name for eg 1.csv 2.csv 3.csv 4.csv i need to replace the extension 1.csv 1.txt 2.csv 2.txt 3.csv 3.txt (3 Replies)
Discussion started by: rohit_shinez
3 Replies

8. Shell Programming and Scripting

Python - glob () - How to grep same files with different extension files

Hi I Have a directory and i have some files below abc.txt abc.gif gtee.txt ghod.pid umni.log unmi.tar How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies

9. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies

10. Shell Programming and Scripting

Listing files with an certain extension

I'm suppose to write a command that would list all files that end in .tx with an optional t at the end. So far all I got is listing the files that end in .tx which is: ls *.tx Now my problem is how do I add the optional t at the end. (3 Replies)
Discussion started by: Shawn565
3 Replies
SUSPICIOUS-SOURCE(1)					      General Commands Manual					      SUSPICIOUS-SOURCE(1)

NAME
suspicious-source - search for files that are not the GPL's "preferred form of modification" SYNOPSIS
suspicious-source [options] DESCRIPTION
suspicious-source is a script that outputs a list of files which are not common source files. This should be run in the root of a source tree to find files which might not be the "preferred form of modification" that the GPL and other licenses require. The files inside version control system directories (like .bzr/ or CVS/) are not considered. OPTIONS
-h, --help Show this help message and exit. -v, --verbose Print more information. -d directory, --directory=directory Check the files in the specified directory instead of the current directory. -m mimetype, --mimetype=mimetype Add mimetype to list of white-listed MIME types. -e extension, --extension=extension Add extension to list of white-listed extensions. AUTHORS
suspicious-source and this manpage have been written by Benjamin Drung <bdrung@debian.org>. Both are released under the ISC license. DEBIAN
Debian Utilities SUSPICIOUS-SOURCE(1)
All times are GMT -4. The time now is 12:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy