Search Results

Search: Posts Made By: preethgideon
1,930
Posted By preethgideon
Awesome. My actual file was "," delimited. I...
Awesome. My actual file was "," delimited. I added a -F",". Thanks a lot again.

Thanks and Regards,
Preetham R.
1,930
Posted By preethgideon
AWK help
Hi,
I have a file with the following data in a file :: File1

Name Credit
A 45
B 4
D 9
A -3
B -10
A -3
Need the output as

Name +ve Cr -ve Cr
A ...
1,980
Posted By preethgideon
Sorry about the code tag. I will use it going...
Sorry about the code tag. I will use it going forward. I changed the "," to "|" when i modified the code.

3rd column in file1 to 2nd in files2. And 3rd fron file3 to 2nd in file3.
Print...
1,980
Posted By preethgideon
Thanks Anchal and Scrutinizer. I tried to modify...
Thanks Anchal and Scrutinizer. I tried to modify your code, It's throwing some bad rows. If you don't mind can you please modify the row according to this requirement?


File 1

900 |PINE ...
1,980
Posted By preethgideon
Yes. I clean up the the dupes before this step. ...
Yes. I clean up the the dupes before this step.

But point is that multiple guys will have the same subject.

Thanks and Regards,
Gideon.

---------- Post updated at 07:19 PM ----------...
1,980
Posted By preethgideon
Shell/Perl logic for loop
Hi,
I have a requirement as follows. Have 3 files. Need to match up the data in each one of them and sum up the data by a field and display it. example given below.

File 1 : Name, Emp id
File 2...
1,380
Posted By preethgideon
Global - Local script??
Hi,
I have a script which can be called from any path on the machine. It kind of acts like a global script. How do I achive this? :confused:

The path from which I call it is different from the...
Forum: Linux 03-24-2010
1,456
Posted By preethgideon
How to call a DB2 SP from Solaris machine.
Hi,
Can some one give me the syntax, how to call a DB2 SP from a Solaris machine.

Thanks and Regards,
Preetham R.
1,699
Posted By preethgideon
Display issue.
Hi All,
I run this command ps -ef | grep daemon. This just returns half info on the page. Like.

User 10888 1 0 23:04:58 ? 0:44 /opt/xxxxx/bin/perl /home/xxxxx/s

After the "/s "at...
1,676
Posted By preethgideon
Thank You very much. Meanwhile I found a very...
Thank You very much. Meanwhile I found a very inefficient method find "pattern" * */* */*/* */*/*/* :D
1,676
Posted By preethgideon
'search' help
Hi All,
I have a string say 'XTY'. I need to search for the files that have this string 'XYT' in all the sub folders in my home directory say /home/xx51007/


Please help. I am unable to think of...
9,482
Posted By preethgideon
Or I guess you can try nohup...
Or I guess you can try

nohup ................ &

This should help.


Thanks and Regards,
Gideon.
7,439
Posted By preethgideon
Hey I got the answer... ls -ltr | awk '{...
Hey I got the answer...

ls -ltr | awk '{ if( ($5 == 0 ) && ( $6 eq 'Apr') && ( $7 == 24 ) ) { print $0 } }'

May be I should have done some search before asking:o

Thanks and Regards,...
7,439
Posted By preethgideon
Files with zero bytes
Hi All,
I want to find zero byte files in the given folder for the given day.

I know we can use find . -size 0 -mtime 0
But is there an option for file creation.?


ls -lart | grep ' 0 Apr...
5,948
Posted By preethgideon
I guess AWK should do it. If the fields are fixed...
I guess AWK should do it. If the fields are fixed then just print them.
Something like this

echo "<log4j:event.........schema="LMS">" | awk '{ print $3,$4, substr($5,3,5), $5...'}
Here $3, $4...
5,224
Posted By preethgideon
Just curious what is this md5sum?
Just curious what is this md5sum?
Forum: Linux 04-20-2009
3,739
Posted By preethgideon
Oh well that was nice.:b: I found another...
Oh well that was nice.:b:

I found another way, just want to share it here.

Type Ctrl + R. That will take us to the searh mode and the word typed would get the matching string in the latest...
7,196
Posted By preethgideon
cd - works with tcsh too.
cd - works with tcsh too.
Forum: Linux 04-18-2009
3,739
Posted By preethgideon
Previously run command.
Hi,
In HP-UNIX I used to use ! before the command and type a portion of the comnand then if that command was previously run the whole line used to appear.

Eg : wc -l samplefile.txt

Next if I...
5,760
Posted By preethgideon
How to redirect the output to a buffer/clipboard ?
Hi,
I was wondering if there is a way by which I can redirect the output of a command to the buffer so that if I do a Ctrl+v or Alt+v it should paste the data.

Ex : cat myfile.txt | grep hello ....
2,844
Posted By preethgideon
Replace in VI
Hi All,
How to add a '*' at the begining of VI file between lines in a range say 20 -30??

Please help.

I tried :%s/20,30/^/\*/

Did not work.

Thanks and Regards,
Gideon.
3,114
Posted By preethgideon
Maximum file size ????
Hi All,

- block size of 512KB & every address requires 4 bits
- The inode structure contains 10 direct pointers, 1 single
indirect, 1 double indirect & 1 triple indirect pointer
What could be...
2,523
Posted By preethgideon
Hi, Thanks for the reply. But I could like to...
Hi,
Thanks for the reply. But I could like to know the snag in the given command. Or the reason why it is not working.

Thanks and Regards,
Gideon.
2,523
Posted By preethgideon
Command not working
Hi,
I am running a command this way

grep -l ` cat get_list_data.lst | awk '{ print $2 }' ` /wss/test/trans/*CASE*

What I am trying to do is, get the second field from the file...
64,917
Posted By preethgideon
I get an error as -c illigal opetion. Note :...
I get an error as -c illigal opetion.

Note : Using HP-UX.
Showing results 1 to 25 of 79

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