Linux bfs command

Updated: 04/26/2017 by Computer Hope

About bfs

Short for "Big File Scanner," bfs is a modified version of the ed editor which is read-only and designed to process much larger files.

Description

The purpose of bfs is to load, view and analyze very large text files. It does not load the text into a buffer, and does not allow the contents to be modified.

The intended use of bfs is to examine a file to determine where it can be split into smaller files using csplit. The more manageable pieces can then be edited with ed.

bfs syntax

bfs [ - ] filename

Options

-

Normally bfs displays information about the size of the file being viewed. If - (a single dash) is specified, bfs will suppresses this information.

filename

The name of the file that you want to view.

bfs examples

bfs myfile.txt

Loads and displays the file myfile.txt.

ed — A simple text editor.
csplit — Split files based on a defined context.