08-23-2002
would this have also worked ?
would this have worked maybe ?
#! /usr/bin/sh
if
[ "$X"="_"]
then
echo "_1234567.RP to be fixed"
rm *_*1234567.RP
fi
Your input would be greatly appreciated once again..
thanks
simon
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys !
I have 24 hours to learn about sendmail (as much as I can) ...
where to start ?
where to go ?
thnx, (2 Replies)
Discussion started by: Gismo
2 Replies
2. UNIX for Dummies Questions & Answers
can someone explain the meaning of the following shell commands:
1. who / wc -l
2. who / sort > user_names
3. cat students > new_students
4. current_day='date / cut -cl-3'
i would also appreciated if you could tell me some things about the umask
1. what is a good umask value and why?
2.... (2 Replies)
Discussion started by: dakis
2 Replies
3. Shell Programming and Scripting
Hi folks,
I have written down a UNIX script which actually FTP the file to other server. What is happening now , this script is not working only for 1 server , as it is working for 32 different FTP server .
In this particular server , we are getting message “FTp:550 access denied”... (1 Reply)
Discussion started by: khan1978
1 Replies
4. Shell Programming and Scripting
i have a file having content
a|b|c
1|2|33
4|6|55
end
a|b|d
3|4|55
end
a|b|c
45|67|98
end
so i want to print 3rd field of header a|b|c and footer end.
e.g. o/p should be
33
55
98 (7 Replies)
Discussion started by: manas_ranjan
7 Replies
5. Shell Programming and Scripting
Hello everyone, I'm new to using Linux and i am trying to create a script that will produce a list of all the files of the present working directory. So far I only have this
#!/bin/bash
cd /
ls -lt>>
I can't figure out what I am suppose to do next. (6 Replies)
Discussion started by: reecygee
6 Replies
6. Shell Programming and Scripting
#!/bin/sh
HOST='ftp.bend.com'
USER='temp1'
PASSWD='temp2'
FTPPATH='SY1:'
ifile='concat.txt'
#FTP concatenated file
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
cd $FTPPATH
put $ifile
get $ifile retrieval.$$
quit
END_SCRIPT
if
then
echo "FTP of... (2 Replies)
Discussion started by: Sgiri1
2 Replies
7. Shell Programming and Scripting
I want to open a file which is in encrypted form and it consists Usernames and passwords.a custommized command is there to open the file.the command is exe of a shell script which takes arguments filename.
after opening with the command it will show four options which are ADD,update,search and... (2 Replies)
Discussion started by: sivaranga001
2 Replies
8. Shell Programming and Scripting
Hi,
1) Need help to write script in KSH to detect a duplicate file.
2) The original file needs to be moved from current path to a different path
3) The duplicate file should continue to stay in the same path.
Exact file names & duplicate file names are given below. Please help me at the... (7 Replies)
Discussion started by: bhagya3001
7 Replies
9. Homework & Coursework Questions
can anyone help me with this???
make program ( shell script) to detect and display errors occurred in initializing a Unix system (4 Replies)
Discussion started by: dementor
4 Replies
10. Shell Programming and Scripting
I work on various messages received from server and want to write a python script that can sort messages with unique flag values and give me the output in a text file.
I get these messages in the form of .zcap file from server and I use an internal tool to filter:
Step 1) Zcap file to get... (1 Reply)
Discussion started by: Vijeta Laad
1 Replies
LEARN ABOUT PHP
numfmt_set_attribute
NUMFMT_SET_ATTRIBUTE(3) 1 NUMFMT_SET_ATTRIBUTE(3)
NumberFormatter::setAttribute - Set an attribute
Object oriented style
SYNOPSIS
public bool NumberFormatter::setAttribute (int $attr, int $value)
DESCRIPTION
Procedural style
bool numfmt_set_attribute (NumberFormatter $fmt, int $attr, int $value)
Set a numeric attribute associated with the formatter. An example of a numeric attribute is the number of integer digits the formatter
will produce.
PARAMETERS
o $fmt
-NumberFormatter object.
o $attr
- Attribute specifier - one of the numeric attribute constants.
o $value
- The attribute value.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
numfmt_set_attribute(3) example
<?php
$fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL );
echo "Digits: ".numfmt_get_attribute($fmt, NumberFormatter::MAX_FRACTION_DIGITS)."
";
echo numfmt_format($fmt, 1234567.891234567890000)."
";
numfmt_set_attribute($fmt, NumberFormatter::MAX_FRACTION_DIGITS, 2);
echo "Digits: ".numfmt_get_attribute($fmt, NumberFormatter::MAX_FRACTION_DIGITS)."
";
echo numfmt_format($fmt, 1234567.891234567890000)."
";
?>
Example #2
OO example
<?php
$fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL );
echo "Digits: ".$fmt->getAttribute(NumberFormatter::MAX_FRACTION_DIGITS)."
";
echo $fmt->format(1234567.891234567890000)."
";
$fmt->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 2);
echo "Digits: ".$fmt->getAttribute(NumberFormatter::MAX_FRACTION_DIGITS)."
";
echo $fmt->format(1234567.891234567890000)."
";
?>
The above example will output:
Digits: 3
1.234.567,891
Digits: 2
1.234.567,89
SEE ALSO
numfmt_get_error_code(3), numfmt_get_attribute(3), numfmt_set_text_attribute(3).
PHP Documentation Group NUMFMT_SET_ATTRIBUTE(3)