util/file.sh¶
File util functions.
- file_append_newline()¶
Append newline at the end of the file.
- file_at()¶
Return line at the given index.
- file_enabled()¶
Check if this module is enabled.
- file_insert_at()¶
Insert given string at the specified index.
- file_newlines()¶
Return the number of new lines in the file.
- file_prefix_each_line()¶
Prefix each line in a file with a string.
- file_remove_at()¶
Remove a line from the specified index.
- file_remove_empty_lines()¶
Remove all lines that contain only white spaces.
- file_remove_matching_lines()¶
Remove all lines that match (sed) pattern.
- file_squeeze_blank_lines()¶
Remove repeated empty lines.