Horje
bash return unique lines starting at nth field Code Example
bash return unique lines starting at nth field
# Basic syntax:
uniq -f number input_file
# Where number specifies the number of fields/columns to ignore from left 
#	to right when doing comparisons to return unique lines

# Note, uniq requires a sorted input. You can sort a file based on 
#	specific fields with sort -k start_field_#,end_field_#

# Example usage:
sort -k 5,7 input_file | uniq -f 5 # This would sort the file using 
#	fields 5-7 and then return unique lines based on a comparison 
#	starting at the 5th field




Shell

Related
git submodule update Code Example git submodule update Code Example
sudo apt install microsoft-edge-dev Code Example sudo apt install microsoft-edge-dev Code Example
shell script to count number of lines in a file Code Example shell script to count number of lines in a file Code Example
download sublime text ubuntu 20.04 Code Example download sublime text ubuntu 20.04 Code Example
git status just shows directory and not files Code Example git status just shows directory and not files Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10