Three methods to read file
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Three methods to read file相关的知识,希望对你有一定的参考价值。
#! /bin/bashcat /tmp/passwd | while read line
do
echo "$line"
done
echo "========================================="
exec < /tmp/passwd
while read line;do
echo "$line"
done
echo "============================================"
while read line;do
echo "$line"
done</tmp/passwd
echo "++++++++++++++++++++++++++++"
以上是关于Three methods to read file的主要内容,如果未能解决你的问题,请参考以下文章
Medical Three Way Stopcock : 3 Application Methods
Three methods about calculate string length
Three.js three.js Uncaught TypeError: Cannot read property 'getExtension' of null
3 Ways to Write Text to a File in Python
(转)Three challenges you’re going to face when building a chatbot
A simple introduction to Three kinds of Delegation of Kerberos