Search Results

Search: Posts Made By: saluja.deepak
1,481
Posted By saluja.deepak
I tried that but the format was exponatial while...
I tried that but the format was exponatial while doing addition

---------- Post updated at 05:25 AM ---------- Previous update was at 05:18 AM ----------



i need the o/p only in 2 decimal...
1,481
Posted By saluja.deepak
it avoids the decimal value. I tried this but...
it avoids the decimal value.
I tried this but answer is not correct.
a=10.11
pattern=-11.01
b=`echo "$a $pattern" | awk {' printf("%d\n", $1 + $2)'}`
echo $b

Decimal + negative value...
1,481
Posted By saluja.deepak
addition of decimal no
a=10.00
pattern=-11.00
b=`echo "$a $pattern" | awk ' printf("%d\n", $1 + $2)'`
echo $b

not working, also trined bc ,dc but thats not on my m/c.
also expr not supporting.

any clue?
4,324
Posted By saluja.deepak
bc is not register on my m/c, any other clue?
bc is not register on my m/c,
any other clue?
4,324
Posted By saluja.deepak
error- multiplying negative decimal values
a=10.02
pattern=-11.01
b=$(echo | awk '{ print $a*$pattern}')
echo $b
its not working even
ALso tried `expr $a \* $pattern`

No LUCK
1,795
Posted By saluja.deepak
do you know the answer of my first question?
do you know the answer of my first question?
1,795
Posted By saluja.deepak
remove of duplicate line from a file
I have a file a.txt having content like

deepak
ram
sham
deepram
sita
kumar

I Want to delete the first line containing "deep" ...

I tried using...

grep -i 'deep' a.txt

It...
2,471
Posted By saluja.deepak
i mean duplicate rows. ---------- Post...
i mean duplicate rows.

---------- Post updated at 05:00 AM ---------- Previous update was at 04:59 AM ----------

i means duplicate rows.
2,471
Posted By saluja.deepak
checking duplicate entry in file
Hi i have a file like
110.10
120.10
-1120
110.10
and the lines are having more than 10k.

do we have anycommand to check the duplicate entries in the file.

I applied the while loop by...
2,101
Posted By saluja.deepak
thanks do we have something in awk also?
thanks

do we have something in awk also?
2,101
Posted By saluja.deepak
Fetching string after matching pattern from last
I have a file a file having entries are like
@ram@sham@sita
@krishan@kumar
@deep@kumar@hello@sham

in this file all line are having different no of pattern-@.

need to fetch the substring...
16,781
Posted By saluja.deepak
Is there any way to set the files modified date and stamp to last modifies time?
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.

Please advice...
29,406
Posted By saluja.deepak
its done thanks.
its done thanks.
29,406
Posted By saluja.deepak
Find last 2 days files.
Need to cpy those files which are created or modified in last 2 days.


bash$ ll -lrt
total 184
drwxr-xr-x 2 ons dce 256 Oct 12 06:58 files
-rw-r--r-- 1 ons dce ...
1,079
Posted By saluja.deepak
problem in matching two string variable.
Plz Ignore this. already solved
3,985
Posted By saluja.deepak
nawk 'NR==FNR{A[$1]=$0;next}$1=A[$1]' one.TXT...
nawk 'NR==FNR{A[$1]=$0;next}$1=A[$1]' one.TXT FS=: OFS=:two.TXT

no output comes


---------- Post updated at 07:14 AM ---------- Previous update was at 07:14 AM ----------






nawk...
3,985
Posted By saluja.deepak
@scrutinizer nawk...
@scrutinizer
nawk 'NR==FNR{A[$1]=$0;next}$1=A[$1]' two.TXT FS=: OFS=: one.TXT
nothing comes in o/p.
3,985
Posted By saluja.deepak
nawk -F: '{getline x<f;$0=x FS $2}1' f=two.TXT...
nawk -F: '{getline x<f;$0=x FS $2}1' f=two.TXT one.TXT
Wrong O/p:
ONS.1287677000.820.log:V[4.1.2] AC[ONS] CC[73] EN[]:V[4.1] 20Oct2010
ONS.1287677000.123.log:V[4.1.2] AC[ONS] CC[73] EN[]:V[4.1]...
1,753
Posted By saluja.deepak
Hi Thanks everone for help. Its really...
Hi

Thanks everone for help. Its really helpfull to post here.

Thanks once again.
3,985
Posted By saluja.deepak
@ vgersh99 My appologies to doubt on ur skills....
@ vgersh99
My appologies to doubt on ur skills.

Actually issue was with extention. i tried by .txt but the actual was .TXT

thank you every one for you time.
3,985
Posted By saluja.deepak
@ ctsgnb Dear, this is murging both the line ....
@ ctsgnb
Dear, this is murging both the line . Thanks for ur help here.
ONS.1287677000.820.log 20Oct2010 ONS.1287677000.820.log:V[4.1.2] AC[ONS] CC[73] EN[]
ONS.1287677000.123.log 21Oct2010...
1,753
Posted By saluja.deepak
Shell Scripting:Fetching content from each line with respect to pattern.
one.txt
ONS.820.log:V[4.1] 20Oct2010:GP[^[KV001^] ^[tk003^] ^[338-1^]
ONS.123.log:V[4.1] 21Oct2010:GP[^[KV003^] ^[tk002^] ^[338-2^]
ONS.820.log:V[4.1] 30Oct2010:GP[^[KV002^] ^[tk001^] ^[338-3^]
...
3,985
Posted By saluja.deepak
Shell Scripting: Compare pattern in two files and merge the o/p in one.
one.txt
ONS.1287677000.820.log 20Oct2010
ONS.1287677000.123.log 21Oct2010
ONS.1287677000.456.log 22Oct2010

two.txt
ONS.1287677000.820.log:V[4.1.2] AC[ONS] CC[73] EN[]...
Showing results 1 to 23 of 23

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