====== BASH - Files ====== [[BASH:Files:Add up the numbers at a specific position in a file|Add up the numbers at a specific position in a file]] [[BASH:Files:Change date/time of a file to right now|Change date/time of a file to right now]] [[BASH:Files:Check if a File exists|Check if a File exists]] [[BASH:Files:Cleaning Log Files|Cleaning Log Files]] [[BASH:Files:Combine files|Combine files]] [[BASH:Files:Copy files to different directory|Copy files to different directory]] [[BASH:Files:Count the lines in a file|Count the lines in a file]] [[BASH:Files:Count the lines in a file that have a specific string|Count the lines in a file that have a specific string]] [[BASH:Files:Create a blank file|Create a blank file]] [[BASH:Files:Delete a field from each line in a file|Delete a field from each line in a file]] [[BASH:Files:Delete a line that matches a pattern|Delete a line that matches a pattern]] [[BASH:Files:Delete carriage returns from a file|Delete carriage returns from a file]] [[BASH:Files:Delete duplicate files|Delete duplicate files]] [[BASH:Files:Delete duplicate lines from a file|Delete duplicate lines from a file]] [[BASH:Files:Delete empty files|Delete empty files]] [[BASH:Files:Delete empty lines|Delete empty lines]] [[BASH:Files:Delete files recursively|Delete files recursively]] [[BASH:Files:Delete files with control characters in their filenames|Delete files with control characters in their filenames]] [[BASH:Files:Delete leading whitespace (spaces or tabs) from front of each line in a file|Delete leading whitespace (spaces or tabs) from front of each line in a file]] [[BASH:Files:Delete leading and trailing whitespace from each line in a file|Delete leading and trailing whitespace from each line in a file]] [[BASH:Files:Delete trailing whitespace (spaces or tabs) from end of each line in a file|Delete trailing whitespace (spaces or tabs) from end of each line in a file]] [[BASH:Files:Difference between a copy of a file and a hard link|Difference between a copy of a file and a hard link]] [[BASH:Files:Display a specific field in a file if it starts with a number|Display a specific field in a file if it starts with a number]] [[BASH:Files:Display a specific field of each line in a file|Display a specific field of each line in a file]] [[BASH:Files:Display a specific line in a file|Display a specific line in a file]] [[BASH:Files:Display every line in a file between one string and another|Display every line in a file between one string and another]] [[BASH:Files:Display every line in a file matching the regular expression|Display every line in a file matching the regular expression]] [[BASH:Files:Display every line in a file prefixed with a line number|Display every line in a file prefixed with a line number]] [[BASH:Files:Display every line in a file with a specific number of characters|Display every line in a file with a specific number of characters]] [[BASH:Files:Display file using formatting|Display file using formatting]] [[BASH:Files:Display lines in a file from a starting line through to an ending line|Display lines in a file from a starting line through to an ending line]] [[BASH:Files:Display the first few lines of a file|Display the first few lines of a file]] [[BASH:Files:Display the last field of each line of the file|Display the last field of each line of the file]] [[BASH:Files:Display the last line of a file|Display the last line of a file]] [[BASH:Files:Display uncommented lines of a file|Display uncommented lines of a file]] [[BASH:Files:DOS2UNIX|DOS2UNIX]] [[BASH:Files:Extract specific file(s) from tar.gz|Extract specific file(s) from tar.gz]] [[BASH:Files:Find all files greater than a certain size|Find all files greater than a certain size]] [[BASH:Files:Find filenames with spaces at the end|Find filenames with spaces at the end]] [[BASH:Files:Find & Replace a String within a File|Find & Replace a String within a File]] [[BASH:Files:Insert blank spaces at beginning of each line in a file|Insert blank spaces at beginning of each line in a file]] [[BASH:Files:List files by size|List files by size]] [[BASH:Files:List files excluding some files|List files excluding some files]] [[BASH:Files:Manage a file whose name starts with a hyphen (-), or a double hyphen (--)|Manage a file whose name starts with a hyphen (-), or a double hyphen (--)]] [[BASH:Files:Parse a line from a file|Parse a line from a file]] [[BASH:Files:Read a file|Read a file]] [[BASH:Files:Rename duplicate files|Rename duplicate files]] [[BASH:Files:Rename files which contain the old sub-string, replacing it with the replacement sub-string|Rename files which contain the old sub-string, replacing it with the replacement sub-string]] [[BASH:Files:Rename multiple files|Rename multiple files]] [[BASH:Files:Rename spaces in a filename with hyphens|Rename spaces in a filename with hyphens]] [[BASH:Files:Replace all occurrences of string within a file|Replace all occurrences of string within a file]] [[BASH:Files:Search files for specific text|Search files for specific text]] [[BASH:Files:Split big files|Split big files]] [[BASH:Files:Swap fields in a file|Swap fields in a file]] [[BASH:Files:UNIX2DOS|UNIX2DOS]] [[BASH:Files:Validate checksum of a file|Validate checksum of a file]] ----