User Tools

Site Tools


ubuntu:file

This is an old revision of the document!


File

Add up the numbers at a specific position in a file

Change date/time of a file to right now

Combine files

Count the lines in a file

Count the lines in a file that have a specific string

Create a blank file

Delete empty files

Delete files recursively

Delete files with control characters in their filenames

Delete leading whitespace (spaces or tabs) from front of each line in a file

Delete leading and trailing whitespace from each line in a file

Delete trailing whitespace (spaces or tabs) from end of each line in a file

Display a specific field in a file if it starts with a number

Display a specific field of each line in a file

Display a specific line in a file

Display every line in a file between one string and another

Display every line in a file matching the regular expression

Display every line in a file prefixed with a line number

Display every line in a file with a specific number of characters

Display lines in a file from a starting line through to an ending line

Display the first few lines of a file

Display the last field of each line of the file

Display the last line of a file

Display uncommented lines of a file

DOS2UNIX

Extract specific file(s) from tar.gz

Find all files greater than a certain size

Find filenames with spaces at the end

Insert blank spaces at beginning of each line in a file

Manage a file whose name starts with a hyphen (-), or a double hyphen (--)

Remove a field from each line in a file

Remove all carriage returns from a file

Rename multiple files

Replace all occurrences of string within a file

Split big files

Swap fields in a file

UNIX2DOS

Validate checksum of a file

ubuntu/file.1576440189.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki