Hi, im a new member. Nice to meet you!
I have a question, if someone could help me, ill really apreciate. It would make my daily work easier.
i want to make a depth search of files in /log which the first 4 characters duplicate and with .kur extension.
Example:
/log/1/0124_155178.cas
/log/1/0227_155155.kur
/log/1/0227_155911.kur
In this case i would like this on screen:
/log/1/0227_155155.kur
/log/1/0227_155911.kur
im new in unix , ive tried this:
find /log . -name *.kur | uniq -d -w 4
but it dosent seem to work, but if i go into a directory that has duplicates it works with
ls | uniq -d -w 4
Why the first command dosent work?
Sorry for my terrible english, i try my best.
Edit: Sorry i just saw theres a "UNIX for Dummies Questions & Answers" forum. Could someone move this thread there? Thanks in advance.