Search Results

Search: Posts Made By: sharuvman
19,741
Posted By sharuvman
It worked
Thanks Kelam_Magnus.
It is displaying only linked files (Quite a simple way of getting it !!)

Currently it is displaying the output in "ls -la" format. I wanted only "link file names". I will try...
19,741
Posted By sharuvman
Hi, Command : ls -l|awk...
Hi,

Command :

ls -l|awk 'NF>8{f[$9]=1}NF==11{l[$11]=1}END{for(x in f)if(!l[x]) print x}'|sort

says l[x] event not found.

When I modified array for f, I got output but it is too lengthy....
19,741
Posted By sharuvman
"ls" of only linked files
Hi,

I have a directory where in I have few files linked to others.

For eg: assume I have 8 files like below (ls-l)

a.rom -> b.rom
b.rom
c.rom
d.rom->e.rom
e.rom
f.rom->g.rom
g.rom...
9,746
Posted By sharuvman
Hi Driver, This is not a HOMEWORK question. ...
Hi Driver,
This is not a HOMEWORK question.

Head has one option -n to display first n number of lines in a file.
Which won't serve my purpose.

Tail does samething from opposite direction and...
9,746
Posted By sharuvman
display few lines of the file
Hi,

If I want to have a look at few lines of the file, how do I, what command to use.

Eg: If I have a file having length 2000 lines and I want to have a look at the content between 1400 and...
23,063
Posted By sharuvman
Sorry for incomplete question, Tony. I was...
Sorry for incomplete question, Tony.

I was using perl's expect module to login to a machine and grep for the process and kill it.

That is when I faced this problem.

Now I am using cut...
23,063
Posted By sharuvman
Killing a process from perl script.
How do I kill a process, say by name "drec" from a perl script.

I tried with :
ps -eaf | grep drec | awk '{print $2}' | xargs kill -9.

The output I got is :
ps -eaf | grep drec | awk '{print...
32,042
Posted By sharuvman
Number of differences between 2 files
Hi,

"diff" command takes two file names as arguements and gives the difference between the two.

How do I get the number of differences between two files ???
(Excluding whitespaces).
Don't...
7,647
Posted By sharuvman
FTP from AIX to 20 Windows clients
I have got a unix server ( AIX ) and 20 clients ( windows 2000 ) . I have to transfer a file through FTP from the server to each of 20 clients daily to check the network speed.

But each time I...
Forum: Programming 08-07-2002
1,956
Posted By sharuvman
You can use global variables in multiple files by...
You can use global variables in multiple files by declaring it as extern <variable name> in the file where you want to use.Also, include that file where you have defined the variable.This keyword...
Forum: Programming 07-04-2002
4,486
Posted By sharuvman
Thanks
Hi,
Thanks yaar for opening my eyes on the very first line of my everyday code.

If you have some more good links please do send to following address :

sharath.c@shiparatech.com

thanks,...
Forum: Programming 07-03-2002
4,486
Posted By sharuvman
void can be there
If main is not intended to return anything.......we must have its return type "void".

You can compile the source code using ansi compliance,


bye,
sharath
Forum: Programming 07-03-2002
4,486
Posted By sharuvman
try this one
Can you try this one ??
#include "stdio.h"
#include "stdlib.h"
#include "string.h"

void main(int argc, char **argv)
{
char str[30];
if (argv[2][0] == '-')
{
...
Forum: Programming 04-03-2002
5,657
Posted By sharuvman
Nice
Hi,
It was nice and could't trace how it is printing.

Awesome..................

thank you,
K.S.SHARATH CHANDRA
Forum: Programming 04-03-2002
4,289
Posted By sharuvman
I found the ANSWER
Hi,
I found the answer for your problem
Take a look at the following program :

int n1, n2, n3, n4, n5, n6;

/* open config file */
if ((fileptr = fopen(filename,"r") )== NULL) { ...
Forum: Programming 04-03-2002
5,657
Posted By sharuvman
One liner is not working!!!! by david korn
That one liner is not working.
What include files should I have in the code ?

thank you,
sharath chandra
Forum: Programming 03-26-2002
1,782
Posted By sharuvman
Can you please brief on the same
Hi,
Thanks.
But, can you please brief on the abbreviations used.

Also can you please tell me how to extract the Processor frequency.

regards,
sharath
Forum: Programming 03-26-2002
1,782
Posted By sharuvman
HI please help
Hi,
How do i get the processor frequency on HPUX.
Also, can you please suggest me on how to get the physical address length and Total physical space .

regards,
sharath
Showing results 1 to 18 of 18

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