Regex working in RedHat is not giving any result in Ubuntu
        Posted  
        
            by 
                Supratik
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Supratik
        
        
        
        Published on 2011-11-18T15:35:00Z
        Indexed on 
            2011/11/18
            17:54 UTC
        
        
        Read the original article
        Hit count: 247
        
linux
My goal is to match specific files from specific sub directories. I have the following folder structure
`-- data
    |-- a
    |-- a.txt
    |-- b
    |-- b.txt
    |-- c
    |-- c.txt
    |-- d
    |-- d.txt
    |-- e
    |-- e.txt
    |-- org-1
    |   |-- a.org
    |   |-- b.org
    |   |-- org.txt
    |   |-- user-0
    |   |   |-- a.txt
    |   |   |-- b.txt
I am trying to list the files only inside the data directory. I am able to get the correct result using the following command in RHEL
find ./testdir/ -iwholename "*/data/[!/].txt" a.txt b.txt c.txt d.txt e.txt
If I run the same command in Ubuntu it is not working.
Can anyone please tell me why it is not working in Ubuntu ?
© Server Fault or respective owner