Search Results

Search: Posts Made By: aish11
Forum: Programming 05-15-2012
1,995
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,303
Posted By asterisk-ix_use
Same way!!
Execute this command in the TEST directory..


tar -cvf tarfile.tar *
6,750
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,750
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,819
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,454
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,874
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...
2,874
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;...
13,807
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,875
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,291
Posted By chihung
uname -p
uname -p
7,291
Posted By fpmurphy
One way would be to parse the output of ...
One way would be to parse the output of

uname -m
7,291
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
5,262
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)
5,262
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,262
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
3,319
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
3,319
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,319
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
2,390
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'" )
Forum: Programming 10-12-2011
13,167
Posted By Spidi4u
yes thats possible... but your code must be an...
yes thats possible... but your code must be an mbean.
so something like a helloworld-mbean could look like this:

HereŽs a part of an english tutorial. IŽd like to cloak that, but it seems not...
9,045
Posted By michaelrozar17
I was trying a script for your requirement. IMO...
I was trying a script for your requirement. IMO this script needs to be run every 5 mins to cache the files once it arrived.

1. Get the initial count of files arrived. Run this command only once....
2,786
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
2,786
Posted By ahamed101
Use gzip -d <filename> or gunzip Search...
Use gzip -d <filename> or gunzip


Search the forum first before posting!
Google Search Results for how to unzip | The UNIX and Linux Forums...
7,428
Posted By smilesavvy
grep "$( date +"%F" )" abc.log > $( date +"%F"...
grep "$( date +"%F" )" abc.log > $( date +"%F" ).log
Showing results 1 to 25 of 28

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