메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


read는 column 단위로 나뉘어 있는 줄도 읽을 수 있습니다.
예를 들어 'test.txt'라는 파일의 내용이 아래와 같을때

a A 1 aaa AAA 111
b B 2 bbb BBB 222

아래의 코드는
--------------------------------
#!/bin/bash

while read A B C ETC
do
    echo "${A}-${B}-${C}-${ETC}"
done < test.txt
------------------------------------
아래와 같은 결과를 출력합니다.

a-A-1-aaa AAA 111
b-B-2-bbb BBB 222

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로