Search Results

Search: Posts Made By: aksijain
1,660
Posted By aksijain
Join fields comparing 4 fields using awk
Hi All,

I am looking for an awk script to do the following
Join the fields together only if the first 4 fields are same.
Can it be done with join function in awk??

a,b,c,d,8,,,
a,b,c,d,,7,,...
3,497
Posted By aksijain
Is this what you are looking for? nawk...
Is this what you are looking for?

nawk '/UtranCellId/ || /administrativeState/ || /aseDlAdm/ || /aseUlAdm/ || /qQualMin/ {a[++k]=$1;b[++i]=$2}
END{
for (j=1;j<=5;j++)
{printf ("%s \t",a[j])
}...
6,215
Posted By aksijain
find <moved-from> -name file\* -type f -mtime +1...
find <moved-from> -name file\* -type f -mtime +1 -exec mv {} <moved-to> \;
1,796
Posted By aksijain
sed...
sed 's/-\([0-9][0-9]*\).\([0-9][0-9]*\)-/\1_\2-\1.\2-/'

Try this if you want to use sed.
1,190
Posted By aksijain
Thanks for that code. It worked. Can you...
Thanks for that code. It worked.

Can you please elaborate where exactly I was going wrong. Thanks.
1,190
Posted By aksijain
That doesn't work either. I thought " "...
That doesn't work either.

I thought " " should be used instead of ' ' because when using variables double quotes should be used. Btw.


c=pci@1f,4000
echo | format | nawk "/$c/ {print}"

...
1,190
Posted By aksijain
awk fails when using variable
This works when I try to execute normally :

echo | format | nawk '/pci@1f,4000/{print x}; {x=$0 }'

But fails when define a variable and put it in a file:

cat test
c=pci@1f,4000
echo |...
1,144
Posted By aksijain
you want to exclude -bash process from ps...
you want to exclude -bash process from ps command?
ps -ef | grep -v bash
Forum: Solaris 12-05-2012
1,557
Posted By aksijain
Console-login in maintainance mode
I have a v490 server running Solaris 10.
Everytime I reboot this machine, the console-login service goes to maintainance mode and I have to provide the root password. All the other dependencies are...
Forum: Solaris 12-04-2012
9,123
Posted By aksijain
Thanks Neo for your answer!! for my better...
Thanks Neo for your answer!!
for my better understnding , could you please list few of the time services which can support ntpdate command and are very commonly and frequently used.
Forum: Solaris 12-04-2012
9,123
Posted By aksijain
Is ntpdate command dependent on ntpd?
Hi,
Could someone Please clarify me here:

Is ntpdate command a part of ntpd, i mean does ntpdate command a dependent on ntpd? and can ntpdate be run in absence of ntpd service.
2,051
Posted By aksijain
Thank you guys...
Thank you guys...
1,518
Posted By aksijain
What exactly are you looking for? Do you want to...
What exactly are you looking for? Do you want to find files which are older than a particular file or you want to find it using name?
If you are looking for files older than your reference file...
2,051
Posted By aksijain
Append column using awk/nawk
Is there any way I can achieve this?

Considering test1 :
a 1 2 3 4
b 2 3 4 5
c 12 1232 14 1
d 10 13 4 5
e 1 5 6 9 1

And test to be some string :
qw
twe
tew
we
qw

I want something...
Forum: Solaris 06-27-2012
5,314
Posted By aksijain
CLX I don't want to restore file. Just want to...
CLX I don't want to restore file. Just want to have file name ..which was deleted..while I am having INODE number.
Forum: Solaris 06-27-2012
5,314
Posted By aksijain
Retreive deleted file name if you having inode number
Some one please help me to find deleted file name, if I am having inode number in Solaris without using any 3rd party tool.
Thanks :)
1,529
Posted By aksijain
Awww..!!! How could I not do that :'( Thanks...
Awww..!!! How could I not do that :'(

Thanks Sheel...
1,529
Posted By aksijain
Thanks Sheel. Was getting some output with that...
Thanks Sheel. Was getting some output with that but did not try with the scale option.
Even the scale option isn't helping either.

awk 'BEGIN {scale=6} {s+=$0} END {printf "%s",s}' test2...
1,529
Posted By aksijain
help with adding up numbers
I have a file which has following contents which I want to add up.

28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24
28170.24...
Forum: Solaris 05-02-2012
4,441
Posted By aksijain
I checked for everything..the user plhw does not...
I checked for everything..the user plhw does not exist neither i can see process by name plath.

It is SPARC-Enterprise-T5220. This is a sudden fault. I remember it was working some days back.
...
Forum: Solaris 05-02-2012
4,441
Posted By aksijain
Unable to take console
When trying to connect to console, I am getting the below error.


plathwsvcd: Another instance is running.
plathwsvcd: Another instance is running.
plathwsvcd: Another instance is running....
16,573
Posted By aksijain
Do the two directories have the same files? ...
Do the two directories have the same files?

And what exactly are you trying to differentiate? the list of files or the contents of each file?
936
Posted By aksijain
echo $time | awk -F: ' { if (NF!=2) print 555}' ...
echo $time | awk -F: ' { if (NF!=2) print 555}'

The field seperator...should be defined outside the loop.
1,652
Posted By aksijain
sed 's/(SUBPARTITION.*/,/g' file
sed 's/(SUBPARTITION.*/,/g' file
25,035
Posted By aksijain
# echo "abc|123|2012-01-30|2012-04-28|xyz" | sed...
# echo "abc|123|2012-01-30|2012-04-28|xyz" | sed 's/|/ /g'
abc 123 2012-01-30 2012-04-28 xyz
Showing results 1 to 25 of 64

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