Search Results

Search: Posts Made By: tene
3,878
Posted By tene
I was looking for ways by which I can find these...
I was looking for ways by which I can find these things by my own.
I do not want to rely on Unix auditing/accounting tools.
3,878
Posted By tene
Unix administration commands
would like to know whether there are commands by which we can monitor these user activity

1) How many files are deleted by a user
2) How many files are FTP'ed by a user

I am looking for...
4,477
Posted By tene
Go to the relevant forum and click on New Thread...
Go to the relevant forum and click on New Thread on top left of the forum.
4,477
Posted By tene
Try this awk -F "|" '{if( NF>5 && $1 !=...
Try this


awk -F "|" '{if( NF>5 && $1 != "") print}' inputfile
10,224
Posted By tene
It was a typo. I corrected.
It was a typo. I corrected.
10,224
Posted By tene
Try this ADV1=94.3 Quantity=96.3 if [...
Try this

ADV1=94.3
Quantity=96.3
if [ $Quantity -gt $ADV1 ]; then
echo "quantity is greter"
fi
Forum: Programming 12-16-2011
1,310
Posted By tene
One way to achieve this is to follow these steps....
One way to achieve this is to follow these steps.

1) Unload the table to a file
2) Apply awk and modify the file
3) Truncate the table
4) Load the file back into the table


Just test this...
5,496
Posted By tene
Why are you using {"/home/user1/bin/outfile.out"}...
Why are you using {"/home/user1/bin/outfile.out"}
Just put filename alone without braces and ".
979
Posted By tene
The umask commands you gave will not affect the...
The umask commands you gave will not affect the permissions.
But if you gave umask 555 or umask 333 etc, it will affect the permission of the files you touch
1,080
Posted By tene
mount.sh > output_file
mount.sh > output_file
Forum: Programming 06-20-2011
2,554
Posted By tene
Dynamic Memory Allocation
Hello Guys

I have a small confusion in the dynamic memory allocation concept.
If we declare a pointer say a char pointer, we need to allocate adequate memory space.


char* str =...
2,059
Posted By tene
awk '{for(i=1;i<=NF;i++){if($i=="PIC")print...
awk '{for(i=1;i<=NF;i++){if($i=="PIC")print $(i-1) $(i+1) $(i+2)} }' inputfile
Forum: Programming 06-14-2011
3,342
Posted By tene
I faced the same problem couple of days back. ...
I faced the same problem couple of days back.
Either you are using strcat directly on cRes without initialising cRes or cRes is not a char array.
6,842
Posted By tene
You can use umask command to set default file...
You can use umask command to set default file permissions.
For eg,

umask 022
will set the default file permission as 755
1,211
Posted By tene
The second file is not required in the awk...
The second file is not required in the awk command.
rdcwayx's command would suffice.

As per stuggler, second file has just unique vales of first file.
1,802
Posted By tene
The index of the awk array need not be integer,...
The index of the awk array need not be integer, it can be string as well.
For eg, arr[test] = 1

Awk array values will be initialised to zero always.
So by the statement, arr[$2]++, would mean...
3,025
Posted By tene
Try post # 6 again
Try post # 6 again
3,025
Posted By tene
There was some typo error in the command, I have...
There was some typo error in the command, I have corrected.
Please try now.
4,281
Posted By tene
Did you mean this? awk -F, '{print...
Did you mean this?

awk -F, '{print $4","$5","$6","$7 > FILENAME".new"}' inputfile
3,025
Posted By tene
sort -k1 inputfile | awk...
sort -k1 inputfile | awk '{name="";for(j=2;j<=NF;j++)name=name" "$j;idarr[name]=$1;titlearr[name]++;}
END{print "These are duplicate titles\n"; for (i in titlearr) {if(titlearr[i]>1)print idarr[i]"...
3,025
Posted By tene
Can you post some lines of the inputfile, the...
Can you post some lines of the inputfile, the command you executed and the output you got?
3,025
Posted By tene
awk '{name="";for(j=2;j<=NF;j++)name=name"...
awk '{name="";for(j=2;j<=NF;j++)name=name" "$j;print name;idarr[name]=$1;titlearr[name]++;} END{for (i in titlearr){if(titlearr[i]>1)print idarr[i]" "i}}' inputfile
8,832
Posted By tene
It should have been awk '{if(...
It should have been


awk '{if( FNR==1)print ">"FILENAME;else print}' *
8,832
Posted By tene
Replace file name with *, so it will apply the...
Replace file name with *, so it will apply the awk to all the files in the dir.

awk '{if( NR==1)print ">"FILENAME;else print}' *
8,832
Posted By tene
awk '{if( NR==1)print ">"FILENAME;else print}'...
awk '{if( NR==1)print ">"FILENAME;else print}' S5_SK1.chr01
Showing results 1 to 25 of 122

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