Timeline for Listing files with a certain extension
Current License: CC BY-SA 4.0
        8 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 14, 2020 at 9:39 | history | edited | Hauke Laging | CC BY-SA 4.0 | 
        
            
             
                
                    added 6 characters in body 
                
             
        
     | 
| Aug 29, 2020 at 6:03 | comment | added | G-Man Says 'Reinstate Monica' | 
        
            
    (Cont’d) …  (3) In the spirit of the first command, the find command can be shortened to find . -type f -regex '.*\.txt?' (assuming GNU find).
        
     | 
|
| Aug 29, 2020 at 6:03 | comment | added | G-Man Says 'Reinstate Monica' | 
        
            
    (1) The first two commands can be improved by the addition of the -d option.  As written now, if you have a directory called dir.tx, then either of those commands will list the contents of dir.tx in addition to listing the text files.  -d will prevent that.  (2) -d will help the second command in another way.  Currently, if it is executed in a directory where there are no text (.txt or .tx) files, it will list all the files in the current directory.  With -d, it will just say .. … (Cont’d)
        
     | 
|
| S Aug 28, 2020 at 22:42 | history | edited | G-Man Says 'Reinstate Monica' | CC BY-SA 4.0 | 
        
            
             
                
                    Fixed typo/logic error (incomplete command). 
                
             
        
     | 
| Aug 28, 2020 at 21:05 | review | Suggested edits | |||
| S Aug 28, 2020 at 22:42 | |||||
| Feb 9, 2016 at 22:52 | history | edited | Hauke Laging | CC BY-SA 3.0 | 
        
            
             
                
                    added 332 characters in body 
                
             
        
     | 
| Feb 9, 2016 at 22:36 | comment | added | shawn edward | is there a way to do it without the shopt -s extglob | |
| Feb 9, 2016 at 22:29 | history | answered | Hauke Laging | CC BY-SA 3.0 |