Hi!!,
Is there any way on Ksh to test the files having a particular Extension?
My program looks something like:
for i in *$1*
do
if "$i" != files with ext of .Z
then
compress -f $i
fi
done
Any suggestions???
:):) (1 Reply)
Hi,
I want to write a script to read all the filenames with extension .xml in a directory and pass the name of the file, one by one, to another function.
Please help me out.
Regards.
Saurabh (3 Replies)
I am brand new to hp unix systems. I see some files without extension on this system. If I type name of the file it shows me so many detail but does not take me back to command prompt. What are these files and how do I come back to command prompt? Please help (1 Reply)
Hi,
I need one line command to display all files that ends with .scr.
Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr.
I tried some commands,... (2 Replies)
Is there any way to compress only the files with .xml extension within a folder which in turn has many sub folders?
gzip -r9 path/name/*.xml is not working
This compression is done in the Windows server using Batch script. (2 Replies)
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)
Hi, I'm trying to do a script that move .Gz extension (one by one) in a new repertory called old-logs and then copy what's inside old-logs to a new.log but adding a date like this (something. gz: 2012:12:09).
thanks in advance for your answers. (5 Replies)
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)
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)
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
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)