井民全觀點 (Jing's Perspective)

2019年3月5日 星期二

[bash] 列出 c file

Code
search_dir=./
for entry in `ls $search_dir*.c`; do
    echo $entry
done

Result
./main.c

Reference
https://stackoverflow.com/questions/2437452/how-to-get-the-list-of-files-in-a-directory-in-a-shell-script


Jing(井民全) at 凌晨1:48
分享
‹
›
首頁
查看網路版

關於我自己

Jing(井民全)
我的書櫃
國家公園入園自動填表工具

-> 程式設計
Python
NodeJS
Shell Script
git 備忘錄

-> 演算法
機率
機器學習

-> 基礎建設
Docker, KVM, VMware, VirBox, Vagrant
Software-defined Storage
雲端與網路
Linux
Windows

檢視我的完整簡介
技術提供:Blogger. 檢舉濫用情形.