Search Results

Search: Posts Made By: sudheshnaiyer
2,789
Posted By sudheshnaiyer
Report of duplicate files based on part of the filename
I have the files logged in the file system with names in the format of : filename_ordernumber_date_time
eg:

file_1_12012007_1101.txt
file_2_12022007_1101.txt
file_1_12032007_1101.txt

I need...
7,974
Posted By sudheshnaiyer
Extract column data from File
I have a file containing the lines similar to the following entries:

File1.txt:
.....
-rw-r--r-- 1 root staff 4110 Aug 7 17:02 XXX_OrderNum1_date1_time1.txt
-rw-r--r-- 1 root ...
20,271
Posted By sudheshnaiyer
I need exactly the same, except that my errors...
I need exactly the same, except that my errors don't end in one line.

eg:
2007-08-31 00:01:16 EDT [ISS.0095.0003C] AuditLogManager Runtime Exception: com.wm.dd.jdbc.base...
13,626
Posted By sudheshnaiyer
Would it be possible if you give me, what these...
Would it be possible if you give me, what these options does:

grep "<Tag1>" test*|sort -t: -k2 -u

Why ":" after t, why 2 after k?

This is what I understood from my research:
-t -->...
13,626
Posted By sudheshnaiyer
Thank you very much. Both of them work!
Thank you very much. Both of them work!
13,626
Posted By sudheshnaiyer
I have used grep command. This gives me all the...
I have used grep command. This gives me all the occurances. I only need unique occurances.

No, this is not a home work problem :)

I need to do this in production. I have simplied my...
13,626
Posted By sudheshnaiyer
Need to find only unique values for a given tag across the files
Need to find only unique values for a given tag across the files:

For eg:

Test1:
<Tag1>aaa</Tag1>
<Tag2>bbb</Tag2>
<Tag3>ccc</Tag3>

Test2:
<Tag1>aaa</Tag1>
<Tag2>ddd</Tag2>...
3,329
Posted By sudheshnaiyer
total number of files which have "aaa" in files whose names are File*_bbb*
I am getting the list of all the files which have "aaa" from files whose name is File*_bbb*.

grep -l "aaa" File*_bbb*

But I want to count the number of files. That is I want the total number...
5,442
Posted By sudheshnaiyer
count the number of files which have a search string, but counting the file only once
I need to count the number of files which have a search string, but counting the file only once

if search string is found.

eg: File1: Please note that there are 2 occurances of "aaa"

aaa...
1,797
Posted By sudheshnaiyer
parameterize Grep?
How do I parameterize Grep?

grep "aaa" A*08022007* | wc -l


I want to replace "08022007" with input from the command prompt?

I want to put this in a file, run this by giving the input...
4,052
Posted By sudheshnaiyer
I think I got the answer: Will the below...
I think I got the answer:

Will the below work?

grep "aaa" M*08042007* | wc -l
4,052
Posted By sudheshnaiyer
count on the grep
The following command lists the files which has "wPOREQ" in the files whose names are like:M*08042007*

grep -l "aaa" M*08042007*

I want to know the count of the files.

Thank you for the...
Showing results 1 to 12 of 12

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