Search Results

Search: Posts Made By: aish11
Forum: Programming 05-15-2012
1,928
Posted By radoulov
You may try: comp.lang.java...
You may try:

comp.lang.java (https://groups.google.com/forum/?fromgroups#%21forum/comp.lang.java) (the link provides access to Usenet through google groups,
it would be better to use a real News...
5,265
Posted By asterisk-ix_use
Same way!!
Execute this command in the TEST directory..


tar -cvf tarfile.tar *
6,687
Posted By balajesuri
You're almost there: date -d "today 08:00:00"...
You're almost there:
date -d "today 08:00:00" +%s
6,687
Posted By balajesuri
If you have GNU date, you could do this: $ date...
If you have GNU date, you could do this:
$ date -d "08 Mar 2012 08:00:00" +%s
1331193600
39,722
Posted By ctsgnb
1) if you run : ./omsSb.sh This suppose that...
1) if you run :
./omsSb.sh
This suppose that you already are in the directory hosting that script

It also suppose that your user is granted (at least) to read that script (if you want to run it...
1,438
Posted By ygemici
you can maybe look at the this flexdeveloper.eu...
you can maybe look at the this
flexdeveloper.eu Forum - Index | Flex Developer forums (http://www.flexdeveloper.eu/forums/)
2,834
Posted By codemaniac
Hello Aish11 , In order to remove the %...
Hello Aish11 ,

In order to remove the % symbol in your sample input file use

for i in `cat df_fnl.txt | sed 's/%//g'`

Does the below code segment is what you need ?

df_threshold=90;...
2,834
Posted By balajesuri
#! /bin/bash df_threshold=90; while read x ...
#! /bin/bash
df_threshold=90;
while read x
do
x=${x%\%}
echo $x | egrep -q "^[0-9]*$"
[ $? -ne 0 ] && continue
if [ $(echo "$x > $df_threshold"|bc) -eq 1 ] ; then
echo...
13,705
Posted By methyl
During your mailx interactive session in your...
During your mailx interactive session in your example the mail is not actually deleted until you leave the session. Even then it is only deleted if you leave the session with the "q" (quit) command...
1,843
Posted By ahamed101
root@bt> uname -r 2.6.38 Version of...
root@bt> uname -r
2.6.38


Version of Linux is basically the kernel release!

--ahamed
7,248
Posted By chihung
uname -p
uname -p
7,248
Posted By ahamed101
uname -a #or arch x86_64 - 64 bit ...
uname -a

#or

arch
x86_64 - 64 bit
i686 - 32 bit

A better one is getconf LONG_BIT

--ahamed
7,248
Posted By fpmurphy
One way would be to parse the output of ...
One way would be to parse the output of

uname -m
5,253
Posted By jayan_jay
In awk .. $ echo "" | nawk -v price=95.3...
In awk ..

$ echo "" | nawk -v price=95.3 '{print (20/100)*price+price}'
114.36
5,253
Posted By balajesuri
$ price1=`echo "scale=2; (20 / 100 * $price) +...
$ price1=`echo "scale=2; (20 / 100 * $price) + $price" | bc -l`
$ echo $price1
114.36
---------------------------------
Late post. Already replied by mirni.
5,253
Posted By mirni
Shell itself doesn't do floating point...
Shell itself doesn't do floating point arithmetics. Use bc or awk:

price=95.3
price1=$(echo "(20/100)*$price+$price" | bc -l)
3,301
Posted By h@foorsa.biz
if [$AD -eq $ZERO ] then echo '$AD is zero...
if [$AD -eq $ZERO ]
then
echo '$AD is zero select another symbol'
fi
3,301
Posted By balajesuri
Wrong syntax. Try this: if [ $AD -eq $ZERO ] ...
Wrong syntax.
Try this:
if [ $AD -eq $ZERO ]
then
echo "blah blah"
fi
3,301
Posted By jayan_jay
Numerical Comparator .. Go with -eq option...
Numerical Comparator .. Go with -eq option instead of == And also ; is missing ..

if [ $AD -eq $ZERO ] ; then
2,338
Posted By radoulov
somevar=$( mysql -h "$IP_ADDR" -u "$USER_NAME" ...
somevar=$( mysql -h "$IP_ADDR" -u "$USER_NAME" "$TABLE_NAME" -BNe"select altid from alert where altid='2724'" )
14,735
Posted By balajesuri
Search on the internet for "bash tutorials"...
Search on the internet for "bash tutorials" (without the quotes)
14,735
Posted By balajesuri
#! /bin/bash cd /home/user01/exercise ...
#! /bin/bash
cd /home/user01/exercise

exercise=/home/user01/exercise

mDate=$(date +%Y%m%d%H:%M:%S)
for mFName in $exercise/*.log
do
mPref=${mFName%.log}
echo $mPref | egrep -q...
7,342
Posted By smilesavvy
grep "$( date +"%F" )" abc.log > $( date +"%F"...
grep "$( date +"%F" )" abc.log > $( date +"%F" ).log
7,342
Posted By jayan_jay
You have completed almost .. $ dat=$(date...
You have completed almost ..

$ dat=$(date +%Y-%m-%d)
$ grep "$dat" abc.log > $dat.log
2,725
Posted By sandy.bhadoriya
just put uncompress sample.zip maybe you have...
just put
uncompress sample.zip
maybe you have to change the .zip to .Z before you can use it.
uncompress sample.Z
Showing results 1 to 25 of 28

 
All times are GMT -4. The time now is 08:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy