Search Results

Search: Posts Made By: sumitc
2,366
Posted By sumitc
How to write a daemon script?
My requirement is to run two scripts simultaneously.
Let say, script1.ksh is running in a loop :
example:
script1.ksh is:
for i in 1 2 3
do
script2.ksh 1 &
#psedu code which is required...
882
Posted By sumitc
THANK YOU !
echo " 1 A B C D F 3 F G 3 1 D L D " | tr -cd "D"| wc -c

Worked perfectly...

grep -o won't work in HP Unix...Sorry I forgot to mention the Unix flavor...

Again thanks for all your help !

...
882
Posted By sumitc
Need help to find total counts in a string
Suppose I have a string " 1 A B C D F 3 F G 3 1 D L D ".

Please let me know the command which tells the above string having 3 Ds.

echo $str | grep -c "D"

It returns only 1 I know the reason...
10,167
Posted By sumitc
Can I get the seond code's output in sorted...
Can I get the seond code's output in sorted order.

Thanks
Sumit
10,167
Posted By sumitc
Only second code is working-- first and third one...
Only second code is working-- first and third one is giving error --
"awk: 0602-590 Internal software error in the tostring function on"

Thanks
sumit
10,167
Posted By sumitc
But can you guys please explain the codes, so...
But can you guys please explain the codes, so that I can understand what exactly it is doing? I really appreciate ur help!

Regards
Sumit
10,167
Posted By sumitc
thank you it also worked!
thank you it also worked!
10,167
Posted By sumitc
Thanks a lot for your amazing code! But it...
Thanks a lot for your amazing code!

But it worked for sample data I have given.

Your first code is giving following error:
awk: 0602-590 Internal software error in the tostring function on
...
10,167
Posted By sumitc
How to delete duplicate records based on key
For example suppose I have a file which contains data as:
$cat data
800,2
100,9
700,3
100,9
200,8
100,3

Now I want the output as
200,8
700,3
800,2

Key is first three characters, I...
Forum: Open Source 07-22-2008
339,246
Posted By sumitc
Please don't hate vi....once u habituated with...
Please don't hate vi....once u habituated with vi, no other editor u will like.
Pressing ESC to invoke any mode is little irritating when u r new but later fingers automatically go there. Features...
6,281
Posted By sumitc
grep "home" inputfile|head...
grep "home" inputfile|head -1000>outputfile
2
2,443
Posted By sumitc
1. Receipient's email address is not valid. 2....
1. Receipient's email address is not valid.
2. Syntax error.
3. Connection lost.

But if you mention what exactly problem you are facing then we can try to solve your problem.

Write the...
Forum: AIX 05-02-2008
27,933
Posted By sumitc
Thank you very much!
Thank you very much!
Forum: AIX 05-02-2008
27,933
Posted By sumitc
How to find special characters??
By more, vi, cat etc commands special characters (few control characters) are not identified.

Is there any way to find out those?

Thanks
Sumit
2,511
Posted By sumitc
I think there could be no. of reason. 1. Don't...
I think there could be no. of reason.
1. Don't try to write in /dev
Try command 2>/tmp/msglog

2. Don't give 2
Try command >/tmp/msglog
3. Write a script and very first line give
set -x
then...
2,376
Posted By sumitc
Try this, if it helps you. cntr=0 while [...
Try this, if it helps you.

cntr=0
while [ $cntr -lt 1000 ]
do
-- -- # Write your code
cntr=`expr $cntr + 1
done
17,147
Posted By sumitc
mail -s "subject" email@hotmail.com <log if...
mail -s "subject" email@hotmail.com <log

if you want to send as attachment, then

mutt -s "subject" -a log email@hotmail.com < mail_body.txt
Forum: AIX 05-01-2008
2,606
Posted By sumitc
Please Help! - Sort command
When I am sorting a file I am getting a warning message
"Warning: A newline character was added to the end of file".

Please let me know hwy I am getting these warnings.

Thanks
Sumit
Forum: Linux 05-01-2008
7,343
Posted By sumitc
Sort Command!
When I am sorting a file I am getting a warning message
"Warning: A newline character was added to the end of file".

Please let me know hwy I am getting these warnings.

Thanks
Sumit
Forum: AIX 05-01-2008
4,658
Posted By sumitc
GZIP ERROR! -- Plesae help! -- Urgent
I have two huge files on AIX Ver 5.0. File size of each file is 6238884375 bytes. There is huge difference in sizes when I zip them by gzip coomand.
File1.gz 586147513
File2.gz 547585695

Any...
11,033
Posted By sumitc
gzip error
two diffeent files with same size after zipping giving different file size
81,894
Posted By sumitc
Era you are a genius....perl works perfectly!! ...
Era you are a genius....perl works perfectly!!

Thanks once again!
81,894
Posted By sumitc
Any further help?
Any further help?
81,894
Posted By sumitc
Sorry, if column number is less than 255 then it...
Sorry, if column number is less than 255 then it works if it is more than 255 its giving error
--
$egrep '^.{256}A' fl
egrep: context of \{\} invalid
81,894
Posted By sumitc
It works. Thanks a lot! sumit
It works.

Thanks a lot!
sumit
Showing results 1 to 25 of 28

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