3 releases (stable)
1.0.1 | Mar 14, 2024 |
---|---|
0.1.0 | Mar 14, 2024 |
#399 in Unix APIs
Used in ju-tcs-tbop-24-dcfk
4KB
51 lines
ju-tcs-tbop-24-lib-dcfk
Implementation of POSIX head and tail functions.
Functions
head
// Returns n first lines from given file.
pub fn head(path: &Path, n: usize) -> Vec<String>
tail
// Returns n last lines from given file.
pub fn tail(path: &Path, n: usize) -> Vec<String>