Hi ,
I am FTPing the file. Once the file is FTPied I need to check whether that file currently transferred is of .xls and I need to convert the same to a flat file. What command to use to find the extension of the file?.
Thanks
Mahalakshmi.A (6 Replies)
Hi,
How do i check whether a file has extension?
I need to code a script that will check whether a file has extension or not. Say a file Rpt200
If the file doesn't have an extenion, I need to rename the file with .txt extension. For example Rpt200 will become Rpt200.txt
Please advice.
... (2 Replies)
$ ls
monkey.txt
banana.csv
tree.txt
$ myscript monkey.txt tree.txt
All extensions ARE alike.
$ myscript *txt
All extensions ARE alike.
$ myscript monkey.txt banana.csv
All extensions are NOT alike.
$ myscript *
All extensions are NOT alike.
My brain has given up; what's the simplest... (11 Replies)
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
hi i want to know how to do this
if the given is /tmp/ and it is a valid directory then it will echo directory
if the given is /tmp/file.txt and is a valid file then it will echo file..
thanks! (5 Replies)
I want to know how you would go about checking if something is either a file or a directory. mostly for argument validation stuff.
I know -d is to see if its a directory but im guessing -f is for files?? (1 Reply)
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Hi,
I have an inquiry on how do I use the find command in Solaris Unix to find some file ends with extension : txt, err in the root directory with modified date of 30days and this find command will also need to exclude b directory and its subdirectory. All the files from the above find criteria... (5 Replies)
Discussion started by: snowfrost88
5 Replies
LEARN ABOUT LINUX
suspicious-source
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)