06-05-2009
Reading extension of files
Hi,
I need a command to read extension of files. Could anyone please help me?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: jyotipg
1 Replies
2. Shell Programming and Scripting
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)
Discussion started by: bhalotias
3 Replies
3. HP-UX
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)
Discussion started by: rajahindustani
1 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: gwgreen1
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: Codesearcher
2 Replies
6. UNIX for Dummies Questions & Answers
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
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)
Discussion started by: Froob
5 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
10. UNIX for Dummies Questions & Answers
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 DEBIAN
gftype
GFTYPE(1) General Commands Manual GFTYPE(1)
NAME
gftype - translate a generic font file for humans to read
SYNOPSIS
gftype [-i] [-m] gf_file_name [output_file_name]
DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual
Web2C: A TeX implementation.
The gftype program translates a gf (generic font) file output by, for example, mf(1), to a file that humans can read. It also serves as a
gf file-validating program (i.e., if gftype can read it, it's correct) and as an example of a gf-reading program for other software that
wants to read gf files.
The gf_file_name on the command line must be complete. Because the resolution is part of the extension, it would not make sense to append a
default extension as is done with TeX or DVI-reading software. If no output_file_name is specified, the output goes to stdout.
OPTIONS
The output file includes bitmap images of the characters, if -i is given on the command line, and a symbolic listing of the gf commands, if
-m is specified.
ENVIRONMENT
gftype looks for gf_file_name using the environment variable GFFONTS. If that is not set, it uses the variable TEXFONTS. If that is not
set, it uses the system default.
SEE ALSO
dvitype(1), pktype(1).
Donald E. Knuth et al., Metafontware.
AUTHORS
David Fuchs and Don Knuth wrote the program. It was published as part of the Metafontware technical report, available from the TeX Users
Group. Paul Richards originally ported it to Unix.
Web2C 2012 14 December 1993 GFTYPE(1)