Seven Unix Commands Every Data Scientist Should Know

Seven Unix Commands Every Data Scientist Should Know

Problem: Given a directory containing multiple data files, we want to get a random sample of files (5 files) and copy these files to another directory. First returns a list of files in (including this directory name in their paths), then shuffles the list of file paths, takes the first 5 file paths and, finally, copy each of these 5 files to the directory ( , explained in the next section, is used as an auxiliary command since we couldn’t just use the standard input). This post presented 7 Unix commands to increase the productivity of data scientists, including examples of usage and two auxiliary commands to make even more powerful combinations.

Source: neowaylabs.github.io