Co robi FOLD użycie. Konsola lines exactly at the specified width, even in the middle of a word.

Czy przydatne?

Polecenie fold

Wykonanie, użycie: Break the lines of the named files so that they are no wider than the specified width. fold breaks lines exactly at the specified width, even in the middle of a word. Reads from standard input when given - as a file. By default, fold cuts at 80 columns; tab counts as multiple columns, and a backspace as negative one

Opcje wykonania fold w konsoli

-b,--bytes

Count bytes instead of columns, making tab, backspace, and return characters count as one byte instead of altering the column count, as in the default behavior.

-c,--characters

Count characters, not columns. Similar to counting by bytes.

-s,--spaces

Break at spaces only, if possible.

-w,--width width,-width

Set the maximum line width to width. The flags -w 6, --width 6, and -6 will all set the maximum width to six columns.

Przykłady fold działanie w Słownik polecenie F

Przykład FOLD użycie :
Jak użyć outputs the process IDs of processes that are using the files or local filesystems . Each process ID is followed by a letter code: c if process is using file as the current directory; e if executable co znaczy.
Przykład FOLD użycie :
Jak użyć Display statistics about memory usage: total free, used, physical, swap, shared, and buffers used by the kernel krzyżówka.
Przykład FOLD użycie :
Jak użyć files for lines that match the specified text string . Exit status is 0 if any lines match, 1 if not, and 2 for errors. fgrep is faster than normal grep searches, but less flexible: it can only find co to jest.
Przykład FOLD użycie :
Jak użyć Remote user information server. fingerd provides a network interface to the finger program. It listens for TCP connections on the finger port and, for each connection, reads a single input line słownik.
Przykład FOLD użycie :
Jak użyć specified width by filling lines and removing newlines. Concatenate files on the command line, or read text from standard input if - (or no file) is specified. By default, preserve blank lines czym jest.