Skip to content
Advertisement

Linux/Shell slicing a large text file

Given

File1

JavaScript

File2

JavaScript

I wish to make a method that basically does this

JavaScript

So given a uniquename from file1 it will use its key from file2 to get what it’s link to. If it doesn’t find uniquename do nothing.

MY ATTEMPT

JavaScript

Advertisement

Answer

The cut utility was designed for this type of data:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement