Live data from Hacker News

Rawhide – (rh) find files using pretty C expressions

raf.org

11–15 of 15 posts

Re: Rawhide – (rh) find files using pretty C expressions

#11

Looking at the last line: Authors: 1990 Ken Stauffer, 2022 raf Has this been around since 1990? I’m bummed I didn’t know about it. The variety of output options is amazing.

It was around in 1990. Then as far as I know, it disappeared, until I stumbled across it in my old comp.cources.unix file in an old archive tarball, and had to bring it back to life and up to date.

Re: Rawhide – (rh) find files using pretty C expressions

#12
post #5

What did he do to rh? I suppose just adding json support, and 64bit off_t support. Ah, I see: https://github.com/raforg/rawhide/commits/main A bit more cleanup and handy aliases also.

The CHANGELOG file shows the changes for v3.0: https://github.com/raforg/rawhide/blob/main/CHANGELOG

The were many changes. The search criteria language evolved. More search criteria were added. It now can do everything GNU find(1) can do (except filesystem type names), as well as searching by all/more of the inode/stat metadata, and access control lists ("POSIX", NFSv4, and macOS ones), and extended attributes (names and values), and (soon in v3.1) Linux ext2-style file attributes (like immutable and append-only). And it's thoroughly documented and tested. And the standard library of search terms wasn't there before. And of course, it now handles regular expressions, but only perl-compatible ones, because they are the most fun. The output options were expanded a lot based on GNU find (-printf) and GNU ls and json.

But it is almost completely backwards-compatible! Except that "NOW" is now called "now", and the -r option is slightly different (it was -M1, now it's -m1 -M1), and it no longer defaults to reading search criteria from stdin.

The original rawhide v2 is at https://github.com/rafarc/rawhide if you'd like to see it.

Re: Rawhide – (rh) find files using pretty C expressions

#13
post #11

Looking at the last line: Authors: 1990 Ken Stauffer, 2022 raf Has this been around since 1990? I’m bummed I didn’t know about it. The variety of output options is amazing.

It was around in 1990. Then as far as I know, it disappeared, until I stumbled across it in my old comp.cources.unix file in an old archive tarball, and had to bring it back to life and up to date.

Thank you very much for doing that!

Do you happen to know why it was called rawhide? I'm very curious.

Re: Rawhide – (rh) find files using pretty C expressions

#14
post #11

Earlier quoted context omitted.

It was around in 1990. Then as far as I know, it disappeared, until I stumbled across it in my old comp.cources.unix file in an old archive tarball, and had to bring it back to life and up to date.

Thank you very much for doing that! Do you happen to know why it was called rawhide? I'm very curious.

Sorry, I don't.

Re: Rawhide – (rh) find files using pretty C expressions

#15
post #14

Earlier quoted context omitted.

Thank you very much for doing that! Do you happen to know why it was called rawhide? I'm very curious.

Sorry, I don't.

But I like to think it refers to making the raw C API available on the command line.
Post reply on HN