Getting More EDU Backlinks

Share This

If you already have lists of hundreds or thousands of potential backlinks contained in multiple files and want to extract the EDU links from them you can run a quick shell script on them.

Take the files that contain your lists of backlinks and put them in their own directory. Then navigate to that directory in the terminal and type the following lines:

for f in *
do
cat $f | grep '\.edu' >EDU-$f
done

An explanation of the script:

  1. for f in * means to loop over each file in the directory.
  2. cat $f outputs the contents of each file.
  3. grep '\.edu' >EDU-$f searches through the current file in the loop and extracts each line that contains .edu and then writes it to a file that begins with EDU-.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
Close
E-mail It