Skip to Content
Machine Learning: Hands-On for Developers and Technical Professionals
book

Machine Learning: Hands-On for Developers and Technical Professionals

by Jason Bell
November 2014
Beginner to intermediate
408 pages
8h 44m
English
Wiley
Content preview from Machine Learning: Hands-On for Developers and Technical Professionals

Appendix CUseful Unix Commands

Regardless of the operating system you use on a daily basis, there's nothing wrong with learning some handy Unix commands. The commands covered in this section will help you on the day-to-day tasks of quickly testing, parsing, and searching through your text data.

If you're a Windows user, you can still join in by downloading Cygwin, which is a Unix shell command interpreter. Cygwin is a shell that sits on top of the Windows Command application and behaves like it's a Unix install.

Some of these commands will appear from time to time in the chapters of this book, especially in Chapters 9 and 10, so it's worth reviewing them now. Experiment with them and study the output so you have an idea of what to expect.

Using Sample Data

Before you get started with the tools, you need some sample data. With a text editor, type out the following lines and separate each value with a tab.

987    1391548780   hhh bbb
988    1391548781   sda jjj
989    1391548782   asd asd
990    1391548783   gjh jkl
991    1391548784   abc abc
992    1391548785   ghj gjh
993    1391548785   hhh bbb
994    1391548785   sda jjj
995    1391548786   asd asd
996    1391548787   gjh jkl
997    1391548787   abc abc
998    1391548787   ghj gjh

Name the text file text.txt, and then you can follow along with the following commands and see the output. The sample data is basically comprised of a unique id, a timestamp, and some text. It's the sort of thing you would see within a database table but is output as text. This example uses a tab delimiter, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Machine Learning for Developers

Machine Learning for Developers

Rodolfo Bonnin
Machine Learning for Business

Machine Learning for Business

Richard Nichol, Doug Hudgeon
Machine Learning

Machine Learning

Mohssen Mohammed, Muhammad Badruddin Khan, Eihab Mohammed Bashier
Machine Learning

Machine Learning

Subramanian Chandramouli, Saikat Dutt, Amit Kumar Das

Publisher Resources

ISBN: 9781118889497Purchase book