Search Results

Search: Posts Made By: navojit dutta
7,914
Posted By navojit dutta
Thank you Jotne, it was getting executed via...
Thank you Jotne, it was getting executed via nawk.
I have a question though, can't we use sed to replace on fixed column numbers, say colomn 21-40 to be replaced with some string(TEST).

As in...
7,914
Posted By navojit dutta
Thanks a ton Jotne for the reply, but its giving...
Thanks a ton Jotne for the reply, but its giving quite a few error :
awk '{gsub(/-.+\*\*/,"-TEST**");gsub(/\+.+\*\*/,"+TEST**")}1' file.txt
awk: syntax error near line 1
awk: illegal statement...
7,914
Posted By navojit dutta
Replace specific column range in a non-delimited file with a string!
Hi All, I will need an help with respect to replacing a range of columns on a non-delimited file using a particular string pattern.

Say file input is
MYNUMBERD000000-BAN CHUE INSNTS ** ...
8,116
Posted By navojit dutta
Can you try to run the piece of code like below :...
Can you try to run the piece of code like below :

"connection string" ! << >> WorkLog.log

your code

!

Thanks.
8,116
Posted By navojit dutta
Try to put the script which you want to use in...
Try to put the script which you want to use in some remote host under the below syntax :

"connection string" !<<EOF

your code

!

This helps the remote host to identify the part of the...
5,125
Posted By navojit dutta
Hello Man, From the below one liner remove the...
Hello Man,
From the below one liner remove the "\n"
Thats all u need to do......

awk -F: '/Sending SIGKILL/{a=$NF;getline;getline;printf "\"%s\n%s\"\n",substr(a,2),$0}' log.file

Thanks....
4,523
Posted By navojit dutta
May be you don't have a permission to create a...
May be you don't have a permission to create a file in that directory.
Basically the elimentary nature of > should write to a file as franklin has given its fine.
You can also "touch" a file and...
2,119
Posted By navojit dutta
Absolutely fine....:b:
Absolutely fine....:b:
7,323
Posted By navojit dutta
Hi Reddy, Johnson's script absolutely fine : ...
Hi Reddy,
Johnson's script absolutely fine :
for filename in *
do
printf "Average for %s = " "$filename"
awk '/^MAS/ || /^Delhi/ { ++n; sum += $3 }
END { print sum / n }
'...
3,622
Posted By navojit dutta
Hi both, Thanks a lot.[:)]
Hi both,

Thanks a lot.[:)]
3,622
Posted By navojit dutta
Hi Digby, Thanks very much for the reply but I...
Hi Digby,
Thanks very much for the reply but I was watching out for some unix shell script stuff for the solution.

Can anyone help in this....using shell script.

Thanks...
3,622
Posted By navojit dutta
Column wise file parsing.
Shell script for the below operation :

File "A" contains :

SEQ++1'
MOA+9:000,00:ABC'
RFF+AIK:000000007'
FII+PH+0170++AA'
NAD+PL+++XXXXXXXXXXX XXXXXXX XX++XXX XXXX XXXX X.X. XXXXXXXXX+++NL'...
17,142
Posted By navojit dutta
Using awk u can do in this way : awk -F","...
Using awk u can do in this way :

awk -F"," '{print $NF}' Your_Filename
1,374
Posted By navojit dutta
Vidyadhar....yes...its fine.....but why did you...
Vidyadhar....yes...its fine.....but why did you used an -L....its working without a -L also in Linux....
18,583
Posted By navojit dutta
If you want to use AWK code : awk...
If you want to use AWK code :

awk '/Hello/{getline;print}' filename.

But I wonder whether getline would work in SUN-Solaris....
Can you tell the forum which version u are using....I will try...
18,583
Posted By navojit dutta
hi.... Do you want the next three lines or all...
hi....
Do you want the next three lines or all the lines after the pattern matching.
Your required output shows that you want all the lines after the pattern matching.
Be clear on your requirement...
1,515
Posted By navojit dutta
Hi Mr. supercool, There needs to be a few...
Hi Mr. supercool,

There needs to be a few questions that just popped in....hoping for a reply from your side :
1>Kindly provide a piece of content of the file containing the host names.
2>Is...
7,106
Posted By navojit dutta
you can redirect the SQL o/p in a temp file...
you can redirect the SQL o/p in a temp file something like $$ and take the 3rd column using awk....:b:
4,253
Posted By navojit dutta
Hi Perdorabo, Thanks for you comments but in...
Hi Perdorabo,
Thanks for you comments but in the second case I think you may have noticed that I am trying to copy to the destination which doesn't have the write permissions.
So in that case would...
4,253
Posted By navojit dutta
Hi porter, In both the cases i was trying to...
Hi porter,

In both the cases i was trying to copy to the destination.

And the permission for "def" can be -rwxrwxrwx or -r-xr-xr-x,tried with both.
the directory where i wanted to copy def had...
4,253
Posted By navojit dutta
A Strange Behaviour!!!
Can some-one give me a view to this :

I have a directory in an unix server, having permissions r-xr-xr-x .This directory is basically a source directory.
Now there is another directory basically...
74,344
Posted By navojit dutta
Hi Gurus, Kindly help...Its very urgent. ...
Hi Gurus,
Kindly help...Its very urgent.
thanks.
74,344
Posted By navojit dutta
To find the RAM size for an Linux server.
Hi Gurus,

Can someone let me know how to find the RAM size,ROM size and Number of processors for a linux server.
Version :Linux 2.4.9-e.57smp
Also what does "e.57smp" stands for?

Thanks in...
5,194
Posted By navojit dutta
To find the count of records from tables present inside a file.
hi gurus,

I am having a file containing a list of tables.i want to find the count of records inside thes tables.
for this i have to connect into database and i have to put the count for all the...
6,037
Posted By navojit dutta
Tagged regular expressions(TRE) in unix
Hi gurus,
Can any of you suggest any good link for going through tagged regular expressions for unix.I am finding it quite critical and need some help from all gurus to know this better.
Any good...
Showing results 1 to 25 of 37

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