I am using Posix shell to write a script. The problem I am having is that when I use the read command to go through a file I lose the tabs. How can I keep this from happening? (1 Reply)
Hi All,
I need to read filenames with space in between in a for loop
like
Integration of utility projects
Integration of hdf projects
I copied these files from a windows system and as you know windows filename has spaces in between them.
But while unix is reading the filename in a for... (12 Replies)
cat file1|while read i
do
echo "$i"|wc
done
with this command the space in the end of the line not considered
how can solve that
for example:
read h
"hgyr "
echo "$h"|wc
4 (2 Replies)
Hi
I am using Solaris8.I want to find the total disk space of my server.Can anyone please tell that which field in below mentioned code signifies the disk space and whether this space is in Mb or GB.
c11t0d52 <EMC-SYMMETRIX-5264 cyl 4 alt 2 hd 15 sec 64>
... (4 Replies)
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:
The problem would be to make the program tolerate the white space and still read the string of characters. the... (1 Reply)
Hi,
My Requirement is to read the filenames which possess space charatcer in it and pass the same file name to the other shell script as input parameter.
Please provide your valuable suggestion. (5 Replies)
I have a loop like
while read i
do
echo "$i"
.
.
.
done < tms.txt
The tms.txt contians data like
2008-02-03 00:00:00
<space>00:00:00
.
.
.
2010-02-03 10:54:32 (2 Replies)
Hello, Unix-Forums.
How can I make a Space after a read prompt? let's assume:
read -p "Are you good?:" varthe output would be ( | is the cursor ):
Are you good?:|But I want it to be:
Are you good?: |That's what I mean.
How would I do that? (2 Replies)
my program is designed to take the first parameters as extension, then the rest of the parameters as files to be searched for and, if found, modified by the extension. If not found, it prints an error.
Everything is great until: ./chExt.sh 'com' 'king cobra.dat'
where $file splits up the two... (2 Replies)
Hi,
Is there any chance that a file system that mounted on the server becomes read only when the space in that file system becomes full?
Regards,
Sreejith (9 Replies)
Discussion started by: Sreejith K
9 Replies
LEARN ABOUT PHP
ps_get_value
PS_GET_VALUE(3) 1 PS_GET_VALUE(3)ps_get_value - Gets certain valuesSYNOPSIS
float ps_get_value (resource $psdoc, string $name, [float $modifier])
DESCRIPTION
Gets several values which were set by ps_set_value(3). Values are by definition float values.
The parameter $name can have the following values.
o fontsize - The size of the currently active font or the font whose identifier is passed in parameter $modifier.
o font - The currently active font itself.
o imagewidth - The width of the image whose id is passed in the parameter $modifier.
o imageheight - The height of the image whose id is passed in the parameter $modifier.
o capheight - The height of a capital M in the currently active font or the font whose identifier is passed in parameter $modifier.
o ascender - The ascender of the currently active font or the font whose identifier is passed in parameter $modifier.
o descender - The descender of the currently active font or the font whose identifier is passed in parameter $modifier.
o italicangle - The italicangle of the currently active font or the font whose identifier is passed in parameter $modifier.
o underlineposition - The underlineposition of the currently active font or the font whose identifier is passed in parameter $modi-
fier.
o underlinethickness - The underlinethickness of the currently active font or the font whose identifier is passed in parameter $mod-
ifier.
o textx - The current x-position for text output.
o texty - The current y-position for text output.
o textrendering - The current mode for text rendering.
o textrise - The space by which text is risen above the base line.
o leading - The distance between text lines in points.
o wordspacing - The space between words as a multiple of the width of a space char.
o charspacing - The space between chars. If charspacing is != 0.0 ligatures will always be dissolved.
o hyphenminchars - Minimum number of chars hyphenated at the end of a word.
o parindent - Indention of the first n line in a paragraph.
o numindentlines - Number of line in a paragraph to indent if parindent != 0.0.
o parskip - Distance between paragraphs.
o linenumberspace - Overall space in front of each line for the line number.
o linenumbersep - Space between the line and the line number.
o major - The major version number of pslib.
o minor - The minor version number of pslib.
o subminor, revision - The subminor version number of pslib.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $name
- Name of the value.
o $modifier
- The parameter $modifier specifies the resource for which the value is to be retrieved. This can be the id of a font or an image.
RETURN VALUES
Returns the value of the parameter or FALSE.
SEE ALSO ps_set_value(3).
PHP Documentation Group PS_GET_VALUE(3)