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

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

DOS2UNIX

Extract specific file(s) from tar.gz

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 (--)

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

Print a specific field of each line in a file

Print a specific line in a file

Print every line in a file between one string and another

Print every line in a file matching the regular expression

Print every line in a file prefixed with a line number

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

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

Print the first few lines of a file

Print the last field of each line of the file

Print the last line of a file

Print uncommented lines of a file

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.1574600230.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki