06-02-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I have written shell script whcih at the max 3 parameters.
When only one commandline argument and other two command line arguments are passed as empty string like
eg : archive ' ' ' '
Then i need to check whether the commandline... (12 Replies)
Discussion started by: rahman_riyaz
12 Replies
2. UNIX for Dummies Questions & Answers
Hi Masters.....
I have problem !!!
I need to check number of records in a file and if it is zero or file is empty i need to do some task.
if ; then
echo "File s empty"
else
echo "Not empty"
fi
so how to check this condition.
I used wc -l < filename.txt => 1 for zero records
same result... (1 Reply)
Discussion started by: shreekrishnagd
1 Replies
3. Shell Programming and Scripting
How do I check if a file is empty in a sh script
I want to test in my shell script if the output file is empty and if it is do one thing and if it isnt empty do another?
any ideas? (8 Replies)
Discussion started by: stolz
8 Replies
4. Shell Programming and Scripting
I have the list of users in user.log, under each user folder there is sub1 folder is there. i want to check whether sub1 is empty or not, if it is empty i have to skip that user user folder and iterate next user folders. i have the sample code,its not giving not proper results.
while read line... (8 Replies)
Discussion started by: KiranKumarKarre
8 Replies
5. Shell Programming and Scripting
Hi All,
I have a requirement to check all the files in a directory and mail non empty files
Files are in csv format , i need to skip header while checking
pls help
Thanks (12 Replies)
Discussion started by: gwrm
12 Replies
6. Shell Programming and Scripting
1.pls tell me the command for checking whether a given directory is empty or not .
2. can i check what is the last copied item in a directory .
and i yes , i want to move that last copied item in another directory .
pls help me with shell code for these two tasks
thanks (1 Reply)
Discussion started by: upvan111
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
1.pls tell me the command for checking whether a given directory is empty or not .
2. can i check what is the... (1 Reply)
Discussion started by: upvan111
1 Replies
8. Shell Programming and Scripting
Hi gurus ,
I have two files and i want to perform different action based on the condition if both or either is empty
If
then
Do something
elif
then
do something
elif
then
do something
else
do something
fi
I have tried the below bt its not... (4 Replies)
Discussion started by: r_t_1601
4 Replies
9. Shell Programming and Scripting
Hello
So i have that script collection, in which i have a single script to create a configuration file.
In there, i have multiple occourences of something like this:
prj_title=$(tui-read "What is the TITLE? ($prj_name):")
] && prj_title="${prj_name/_/ }"
They all work as expected, if... (5 Replies)
Discussion started by: sea
5 Replies
10. Shell Programming and Scripting
I have a script, which is supposed to run 1 day of the month, connect to remote server certain directory, find files, tar the, and copy
find . -ctime -1 | tar -cvf transfer_dmz_start_monthly.tar *${Today}*.*;
if
then
echo "Cannot create a tar file, the terminated... (2 Replies)
Discussion started by: digioleg54
2 Replies
LEARN ABOUT DEBIAN
ttf2ufm_x2gs
TTF2UFM_X2GS(1) TTF2UFM Font Converter TTF2UFM_X2GS(1)
NAME
ttf2ufm_x2gs - font installer for Ghostscript
SYNOPSIS
ttf2ufm_x2gs [config-file]
DESCRIPTION
The fonts generated with ttf2ufm work fine with Ghostscript by themselves. The script `x2gs' (or `ttf2ufm_x2gs' when installed into a
public directory, to avoid name conflicts with other programs) links the font files from the X11 direcotry into the Ghostscript directory
and automatically creates the description file ("Fontmap") in Ghostscript format.
If the configuration file is not specified as an argument then the file `"convert.cfg"' in the current directory is used, just like the
`"convert"' script does. Indeed, this configuration file is used for both scripts.
The Ghostscript-related parameters in the configuration file are:
"DSTDIR" - the X11 font directory used by `"x2gs"' as the source of the fonts. This parameter is common with the X11 configuration.
"GSDIR" - the base directory of Ghostsript. If this parameter is set to an empty string then `"convert"' won't call `"x2gs"'. So if you
want to get only the X11 fonts installed then set this parameter to an empty string. This directory may vary on various system, so please
check your system and set this value accordingly before running the script.
"GSFONTDIR" - the font directory of Ghostscript. In the standard Ghostscript installation it's a subdirectory of "GSDIR" but some systems
may use completely different directories.
"GSCONFDIR" - the configuration subdirectory of Ghostscript that contains the "Fontmap" file.
"INSTALLFONTMAP" - if the value is set to "YES" then install the entries for the new fonts right into the main "Fontmap" file. Otherwise
just leave the file "Fontmap.ttf" in the Ghostscript configuration directory.
After preparing the configuration file run the script. It symbolicaly links all the font files and creates the description file
"Fontmap.ttf" in "GSCONDFIR". After that there are two choices.
If the option "INSTALLFONTMAP" was set to "YES" then the font descriptions are also automatically installed into the master "Fontmap" file.
The script is clever enough to detect if it was run multiple times with the same directories and if so it replaces the old "Fontmap"
entries with the new ones instead of just accumulating all of them. You may also run it multiple times for multiple X11 directories and all
the results will be properly collected in the "Fontmap". But it's your responsibility to watch that the names of the font files don't
overlap. If the X11 font directory gets renamed then you have to remove its font entries from the "Fontmap" and only after that re-run
`"x2gs"' for the new directory.
On the other hand if the option "INSTALLFONTMAP" was set to "NO" then go to the "GSCONFDIR" directory and insert the contents of
"Fontmap.ttf" into the "Fontmap" file manually. This step may be left manual to make the installation a little bit more safe.
After that you may also want to redefine some of the aliases in "Fontmap" to refer to the newly installed fonts. But the redefinition of
the aliases may be dangerous if the width of characters in the new font will be different from the old font. Alas, there is no visible
solution of this problem yet.
FILES
o TTF2UFM_SHAREDIR/scripts/convert.cfg.sample
o TTF2UFM_SHAREDIR/scripts/*
o TTF2UFM_SHAREDIR/README
o TTF2UFM_SHAREDIR/FONTS
o TTF2UFM_SHAREDIR/*
o TTF2UFM_BINDIR/ttf2ufm
SEE ALSO
o ttf2ufm(1)
o ttf2ufm_convert(1)
o t1asm(1)
version 3.4.4 December 31, 2003 TTF2UFM_X2GS(1)