12-04-2013
Nothing comprehensible. This is invalid in a variety of ways. -a means "And", and is supposed to be used with two sub-statements, not a single string.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to parse a string in a shell script. I understand there is some in built function to use that. can someone explain the syntax ?
Say, it is like this
#!/bin/ksh
read input
# input is entered as 'welcome'
#Now I want to extract say only first 4 characters or last four #characters.
... (19 Replies)
Discussion started by: asutoshch
19 Replies
2. Shell Programming and Scripting
Iam trying to compare the string in if else... but some how its not working
following is the code
On executing the above one its giving a error message ': bad number'
in the above parameter l & k are numbers and dbfiles and patchefiles are array
If i do echo ift working fine
... (2 Replies)
Discussion started by: kiranlalka
2 Replies
3. Shell Programming and Scripting
Hi All,
can some one figure out the syntax issue here. How to overcome this?
#!/bin/sh
$ HFR_MAIL=NO
$ PRP_MAIL=NO
$ MC_MAIL=NO
$ if && && ]; then
> echo "NO "
> else
> echo "YES"
> fi
test: unknown operator NO
$ if && && ]; then
> echo "NO"
> else
> echo "YES"
>... (4 Replies)
Discussion started by: shellscripter
4 Replies
4. Shell Programming and Scripting
Hi,
I'm new to UNIX, at least shell programming and am having trouble figuring out a problem i'm having. In one section in my nested if statement, i want the program to test if the file does not exist, based on an argument supplied at the command line by the user. What i have is
elif ; then... (3 Replies)
Discussion started by: rowlf
3 Replies
5. Shell Programming and Scripting
Hey everyone. So the background of the problem is that the ps3 does not support the mkv container, but DOES support the avi one. Here is the script to convert one file with the name hardcoded in:
#!/bin/sh
mencoder -oac... (2 Replies)
Discussion started by: wua05
2 Replies
6. Shell Programming and Scripting
I am writing a shell script for some purpose. I have a variable of the form -- var1 = "policy=set policy"
Now I need to manipulate the variable var to get the string after index =. that is i should have "set polcy". Also I need to to this for many other variables where the value of "=" is not... (3 Replies)
Discussion started by: Dev_Sharma987
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am trying to to compare a string variable with a string literal inside a loop but keep getting the
./testifstructure.sh: line 6:
#!/bin/sh
BOOK_LIST="BOOK1 BOOK2"
for BOOK in ${BOOK_LIST}
do
if
then echo '1'
else
echo '2'
fi
done
Please use next... (1 Reply)
Discussion started by: daveu7
1 Replies
8. Shell Programming and Scripting
I have to get the last value from a string, below is the example string
String -> Here is the test string 12233
O/P -> 12233
String -> Hello world 500
O/P -> 500
String -> 300
O/P -> 300
Please help (2 Replies)
Discussion started by: vel4ever
2 Replies
9. Shell Programming and Scripting
Hi Experts,
Iam bit poor in shell scripting,
Here my requirement is for generating an alert where the oracle database db_recovery_file_dest_size usage. If it reaches beyond 80% should recieve an alert through an email.
Want to schedule this alert in cron.
#!/bin/bash
.... (9 Replies)
Discussion started by: Jagadish m
9 Replies
10. UNIX for Beginners Questions & Answers
Hello.
LEAP_VERSION="4.2"
export ARRAY_MAIN_REPO_LEAP=('zypper_local' 'openSUSE-Leap-'"$LEAP_VERSION"'-Non-Oss' 'openSUSE-Leap-'"$LEAP_VERSION"'-Oss' 'openSUSE-Leap-'"$LEAP_VERSION"'-Update' 'openSUSE-Leap-'"$LEAP_VERSION"'-Update-Non-Oss')Seems that the - is interpreted as a numeric... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT DEBIAN
std::decimal::decimal64
std::decimal::decimal64(3cxx) std::decimal::decimal64(3cxx)
NAME
std::decimal::decimal64 -
SYNOPSIS
Public Types
typedef float __decfloat64 __attribute__ ((mode(DD)))
Public Member Functions
decimal64 (decimal32 d32)
decimal64 (decimal128 d128)
decimal64 (float __r)
decimal64 (double __r)
decimal64 (long double __r)
decimal64 (int __z)
decimal64 (unsigned int __z)
decimal64 (long __z)
decimal64 (unsigned long __z)
decimal64 (long long __z)
decimal64 (unsigned long long __z)
decimal64 (__decfloat64 __z)
__decfloat64 __getval (void)
void __setval (__decfloat64 __x)
decimal64 & operator*= (decimal32 __rhs)
decimal64 & operator*= (decimal64 __rhs)
decimal64 & operator*= (decimal128 __rhs)
decimal64 & operator*= (int __rhs)
decimal64 & operator*= (unsigned int __rhs)
decimal64 & operator*= (long __rhs)
decimal64 & operator*= (unsigned long __rhs)
decimal64 & operator*= (unsigned long long __rhs)
decimal64 & operator*= (long long __rhs)
decimal64 & operator++ ()
decimal64 operator++ (int)
decimal64 & operator+= (int __rhs)
decimal64 & operator+= (decimal32 __rhs)
decimal64 & operator+= (decimal64 __rhs)
decimal64 & operator+= (decimal128 __rhs)
decimal64 & operator+= (unsigned int __rhs)
decimal64 & operator+= (long __rhs)
decimal64 & operator+= (unsigned long __rhs)
decimal64 & operator+= (long long __rhs)
decimal64 & operator+= (unsigned long long __rhs)
decimal64 & operator-- ()
decimal64 operator-- (int)
decimal64 & operator-= (long __rhs)
decimal64 & operator-= (int __rhs)
decimal64 & operator-= (long long __rhs)
decimal64 & operator-= (unsigned long long __rhs)
decimal64 & operator-= (unsigned long __rhs)
decimal64 & operator-= (decimal128 __rhs)
decimal64 & operator-= (unsigned int __rhs)
decimal64 & operator-= (decimal32 __rhs)
decimal64 & operator-= (decimal64 __rhs)
decimal64 & operator/= (decimal32 __rhs)
decimal64 & operator/= (long long __rhs)
decimal64 & operator/= (unsigned long long __rhs)
decimal64 & operator/= (unsigned long __rhs)
decimal64 & operator/= (decimal64 __rhs)
decimal64 & operator/= (unsigned int __rhs)
decimal64 & operator/= (decimal128 __rhs)
decimal64 & operator/= (long __rhs)
decimal64 & operator/= (int __rhs)
Detailed Description
3.2.3 Class decimal64.
Definition at line 310 of file decimal.
Constructor & Destructor Documentation
std::decimal::decimal64::decimal64 (__decfloat64__z) [inline]
Conforming extension: Conversion from scalar decimal type.
Definition at line 334 of file decimal.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 std::decimal::decimal64(3cxx)