cut(1) -d \| -f 1
remove sections from each line of files
-d, --delimiter=DELIM
       use DELIM instead of TAB for field delimiter
-f, --fields=LIST
       select only these fields;  also print any line that contains no delimiter character, unless the -s
       option is specified
source manpages: cut