:confused: There is a flat file on my system which contains email addreses of people in my company. This file is utilized when sending notifications for various things. However nobody knows where this file is located or what it is named. The only thing we know is the email address of a user who... (4 Replies)
I have two files ( eg. file1 and file2 ) , its contents are as below , I want to find out the same content ( same word ) in the two files , in the below example , the same content is "aaa" , could suggest how to do it ? thx.
#vi file1
aaa
bbb
ccc
ddd
#vi file2
111
222
333
aaa (4 Replies)
Hi,
I have to rename all occurance of CUST_MST to RESELLER_MST both in filename and file content under a directory (say D0) which contains multiple (2-3 levels) sub directory.
Example:
D0 -> D1 -> D2 has a file CUST_MST_TEMP.txt
this contains :
> cat /D0/D1/D2/CUST_MST_TEMP.txt... (3 Replies)
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
Hi,
Long list of Input file1 content:
1285_t
4860_i
4817_v
8288_c
9626_a
.
.
.
Long list of Input file2 content:
1285_t chris germany
8288_c steve england
9626_a dave swiss
9260_s stephanie denmark
.
.
. (14 Replies)
Hi,
i would like to find 'AppManage' in all files. i have tried the following but it didn't work.
/local/home/mani>grep -iR 'AppManage' *.* - not outcome
/local/home/mani>grep -iR 'AppManage' - this one hangs
thanks (3 Replies)
Hi All,
I am new to the forum and scripting...Can someone help me with a code..
My input file will be like
$cat first
aa a\b bb\ccccc\ddd
ee*e\fff\ggg
output should be
aa a\
b bb\
ccccc\
ddd
ee*e\
fff\
ggg
I tried with
cat first | awk '{ gsub( /\\/, "/\\/" );... (5 Replies)
I have two files named Before.txt and After.txt:
Now i want to find the difference in content between <Marker 1> and <Marker 2> in the two files.
---------- Post updated at 05:00 PM ---------- Previous update was at 04:50 PM ----------
Any help will be highly appreciated..:) (3 Replies)
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory (eg /tmp/)
one by one, keeping the original names
This is what I have so far, which seems to... (1 Reply)