Search Results

Search: Posts Made By: kumaran_5555
2,193
Posted By kumaran_5555
Are you in the correct directory ?
Are you in the correct directory ?
1,174
Posted By kumaran_5555
You should pass using -v option of awk as below ...
You should pass using -v option of awk as below

x=100
awk -v fromShellX=$x 'BEGIN{print fromShellX}' /dev/null


in your case modifiy as

awk -v a=$a,b=$b '$1>=a&&$1<=b {print...
Forum: Programming 03-14-2015
1,886
Posted By kumaran_5555
please read this, there is no message boundary in...
please read this, there is no message boundary in TCP. It is just like reading from a pipe and you receive whatever is available.

Please refer this example...
1,669
Posted By kumaran_5555
just add "|" awk -F"|" 'BEGIN{OFS="|"}{print...
just add "|"

awk -F"|" 'BEGIN{OFS="|"}{print $1,$3,$2"|"}' inputfile
10,451
Posted By kumaran_5555
awk '{if($0~/^abc/){print $1,$2,$3,$4,$5}else...
awk '{if($0~/^abc/){print $1,$2,$3,$4,$5}else if($0~/^flags/){print $2,$3}}' FileName.txt
1,669
Posted By kumaran_5555
awk -F"|" 'BEGIN{OFS="|"}{print $1,$3,$2}'...
awk -F"|" 'BEGIN{OFS="|"}{print $1,$3,$2}' inputfile
1,141
Posted By kumaran_5555
wget can recursively pull file from a webpage -...
wget can recursively pull file from a webpage - provided that webpage has links to other files. This is how recursion happens.

You can't enumerate from a home page to all of its subpages if you...
4,709
Posted By kumaran_5555
Still ambiguous, this is how i understand 1....
Still ambiguous, this is how i understand

1. ignore header
2. space as seperator
3. print rows which has any column as zero

awk 'FNR>1{for(i=1;i<=NF;i++){ if($i==0){print ; next; } }}'...
Forum: Programming 03-11-2015
2,100
Posted By kumaran_5555
newList = list1 + list2 doesn't get easier
newList = list1 + list2

doesn't get easier
1,331
Posted By kumaran_5555
Code for @joeyg logFile=$1 while [ 1 ] ...
Code for @joeyg
logFile=$1

while [ 1 ]
do
curr=`wc -l $logFile`
if [ "$curr" != "$prev" ]
then
echo "Command to execute"
fi
prev=$curr
sleep 1

done


If you are looking for...
4,709
Posted By kumaran_5555
What are you trying with this ?
What are you trying with this ?
2,945
Posted By kumaran_5555
Thanks for all your input. Can anyone explain me...
Thanks for all your input. Can anyone explain me little about how program text sharing happens in Linux while loading the program.

42416000 1568 572 0 r-x-- libc-2.13.90.so...
2,945
Posted By kumaran_5555
Linux Page Sharing
Hi,

I have following doubts regarding page sharing in Linux (please also correct me if any of my assumptions are wrong),

1. In recent kernel KSM does the page sharing for user process'...
2,628
Posted By kumaran_5555
Hi Corona, following is my code for FIFO and...
Hi Corona,

following is my code for FIFO and RR. And have started these process from root user to have the CAP_SYS_RESOURCE.

[hawker@localhost assign_4]$ cat ff_racehorse.c
#include <stdio.h>...
2,628
Posted By kumaran_5555
Real Time processes in Linux
I was trying to experiment with SCHED_RR and SCHED_FIFO.

I tried benchmarking the SCHED_NORMAL with these two real time priorities.

What I found is strange result. SHED_RR was the slowest then...
Forum: Programming 06-30-2011
5,636
Posted By kumaran_5555
Thanks for your explanation Corona. I would...
Thanks for your explanation Corona.

I would like add few things about the context where the code is found. This acutaly found inside the marco current, which will hold the process descriptor being...
Forum: Programming 06-29-2011
5,636
Posted By kumaran_5555
Linux Kernel code "current" macro
I was going through the Linux code, i stuck with few inline assembly language code,

I have tried online but in vain. Any help is much appreciated. Thanks.

/* how to get the thread information...
Forum: Programming 06-28-2011
3,361
Posted By kumaran_5555
Thanks for your wonderful explanation. Let me...
Thanks for your wonderful explanation. Let me study further the things you have introduced to me, and post my doubts.

Thanks again Gurus.
Forum: Programming 06-27-2011
6,146
Posted By kumaran_5555
The C Programming Language - Second Edition By...
The C Programming Language - Second Edition By K&R is where I have started, really a good book, provided you should do some research on examples rather just going trough them.
Forum: Programming 06-27-2011
3,361
Posted By kumaran_5555
Linux kernel code syntax doubt
I have found some definitions as below, can anyone explain me what it means and why it is being used this way please.


asmlinkage void __sched schedule(void)
2,618
Posted By kumaran_5555
if you are having DBConnect.sh at your remote...
if you are having DBConnect.sh at your remote machine, then you can execute it like any other command in the remote machine.



This is quite confusing. what are looking for exactly.

This is...
958
Posted By kumaran_5555
Only one way, use debugs /logging in your process...
Only one way, use debugs /logging in your process and find out what's going on. It is not that one process is killing the other process, a process may even be killed for various reasons by the kernel.
2,222
Posted By kumaran_5555
Fine, did you try the command i have posted ,...
Fine, did you try the command i have posted , this will work and you need to redirect the output into the new file.
2,222
Posted By kumaran_5555
Try this. awk '{if(NR==9){system("sed...
Try this.

awk '{if(NR==9){system("sed 's/abc/ash/g' test.txt")}else {print}}' final.txt what about lines after line number 9 ? you want them to printed or not ?
2,222
Posted By kumaran_5555
you requirement isn't clear. can you give us some...
you requirement isn't clear. can you give us some example.
Showing results 1 to 25 of 344

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