Skip to main content

coreutils_rs/common/
mod.rs

1pub mod io;
2
3/// Get the GNU-compatible tool name by stripping the 'f' prefix.
4/// e.g., "fmd5sum" -> "md5sum", "fcut" -> "cut"
5#[inline]
6pub fn gnu_name(binary_name: &str) -> &str {
7    binary_name.strip_prefix('f').unwrap_or(binary_name)
8}