Skip to Content
Python数据处理
book

Python数据处理

by Jacqueline Kazil, Katharine Jarmul
July 2017
Intermediate to advanced
398 pages
11h 54m
Chinese
Posts & Telecom Press
Content preview from Python数据处理
344
附录
C
结尾,文件类型为
f
(标准文件,而不是目录,目录的类型符号为
d
)。你应该会看到输出
许多匹配的文件名。下面,我们将这些文件通过管道传递给
grep
命令:
find . -name "*.txt" -type f | xargs grep neat
这里我们让
bash
做的是,“找到与上面相同的文本文件,然后在这些文件中搜索单词
neat
”。我们用到了
xargs
命令(
https://en.wikipedia.org/wiki/Xargs
),这样才能将
find
的输
出通过管道正确地传递给
grep
。不是所有的管道操作都需要用到
xargs
,但当
find
命令的
输出结果不完全相同时,这一命令十分有用。
你已经学会搜索和查找的一些实用技巧,特别是你要处理的代码和项目越来越庞大、越来
越复杂时,这些技巧尤其有用。关于这一话题,我们还为你提供了更多资源和阅读材料。
C.1.5
 更多资源
在互联网上有许多优秀的
bash
学习资源(
http://wiki.bash-hackers.org/scripting/tutoriallist
)。
Linux
文档计划(
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
)中也有许多适合初
学者的优秀教程,里面会讲到一些高级的
bash
编程知识。
O
Reilly
出版了一本很棒的
bash Cookbook
http://shop.oreilly.com/product/9780596526788.do
),你也可以用这本
书开始学习。 ...
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

数据科学中的实用统计学(第2版)

数据科学中的实用统计学(第2版)

Peter Bruce, Andrew Bruce, Peter Gedeck
Java持续交付

Java持续交付

Daniel Bryant, Abraham Marín-Pérez
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115459190