Skip to main content
added 1 characters in body
Source Link
slm
  • 380k
  • 127
  • 793
  • 897

Just do :

ls -1R -I"?" -I"??" -I"???" -I"*[!.][!r][!a][!r]r]" 

You don't need grep at all.

NOTE: The above works... except it still gets at least afile-rar and I don't understand why. I'll leave it here, but I'm not proud of it. In any case, as others have said:

find . '*.rar' 

Just do :

ls -1R -I"?" -I"??" -I"???" -I"*[!.][!r][!a][!r] 

You don't need grep at all.

NOTE: The above works... except it still gets at least afile-rar and I don't understand why. I'll leave it here, but I'm not proud of it. In any case, as others have said:

find . '*.rar' 

Just do :

ls -1R -I"?" -I"??" -I"???" -I"*[!.][!r][!a][!r]" 

You don't need grep at all.

NOTE: The above works... except it still gets at least afile-rar and I don't understand why. I'll leave it here, but I'm not proud of it. In any case, as others have said:

find . '*.rar' 
Post Undeleted by mikeserv
added 243 characters in body
Source Link
mikeserv
  • 59.4k
  • 10
  • 122
  • 242

Just do :

ls -1R *-I"?" -I"??" -I"???" -I"*[!.rar][!r][!a][!r] 

You don't need grep at all.

NOTE: The above works... except it still gets at least afile-rar and I don't understand why. I'll leave it here, but I'm not proud of it. In any case, as others have said:

find . '*.rar' 

Just do :

ls -1R *.rar 

You don't need grep at all.

Just do :

ls -1R -I"?" -I"??" -I"???" -I"*[!.][!r][!a][!r] 

You don't need grep at all.

NOTE: The above works... except it still gets at least afile-rar and I don't understand why. I'll leave it here, but I'm not proud of it. In any case, as others have said:

find . '*.rar' 
Post Deleted by mikeserv
added 32 characters in body
Source Link
mikeserv
  • 59.4k
  • 10
  • 122
  • 242

Just do :

ls -1R --hide="*[!*.][!r][!a][!r]"rar 

You don't need grep at all.

Just do :

ls -1R --hide="*[!.][!r][!a][!r]" 

You don't need grep at all.

Just do :

ls -1R *.rar 

You don't need grep at all.

added 1 characters in body
Source Link
mikeserv
  • 59.4k
  • 10
  • 122
  • 242
Loading
Post Undeleted by mikeserv
deleted 308 characters in body
Source Link
mikeserv
  • 59.4k
  • 10
  • 122
  • 242
Loading
Post Deleted by mikeserv
Source Link
mikeserv
  • 59.4k
  • 10
  • 122
  • 242
Loading