我的站点

一个系统软件工程师的随手涂鸦

Date: 四月 5, 2016

awk打印文件的每一行

awk `1` input-file

上面awk命令打印出输入文件的每一行。因为对每一个'/pattern/{action}',如果省略{action},则{action}等价于{print},没有参数的print会打印整个行。所以上述命令变成:

awk `1{print}` input-file

1相当于永远为true。因此会打印文件的每一行。举例如下:

# cat employee.txt
101,John Doe,CEO
102,Jason Smith,IT Manager
# awk '1' employee.txt
101,John Doe,CEO
102,Jason Smith,IT Manager  

参考资料:
Awk One-Liners Explained, Part I: File Spacing, Numbering and Calculations

 

什么是SAP HANA?

本文摘自Introduction To SAP HANA Database- For Beginners

SAP HANA是一个in-memory database,它包含下列特性:

It is a combination of hardware and software made to process massive real time data using In-Memory computing.
It combines row-based, column-based database technology.
Data now resides in main-memory (RAM) and no longer on a hard disk.
It’s best suited for performing real-time analytics, and developing and deploying real-time applications.

SAP HANA体系结构如下图所示:

 

SAP-HANA-Overview

 

Powered by WordPress & Theme by Anders Norén