Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
基于shell的相似文件名的批量操作
deepin Talks
430
views ·
3
replies ·
To
floor
Go
ganrui
deepin
2018-05-16 06:46
Author
虽然功能比较简单,以前不会的时候也挺头疼
#!/bin/sh
filelist=`ls *-gnueabihf-*`
for filename in $filelist
do
echo $filename
refilename=`echo $filename|sed "s/-gnueabihf-/-/g"`
echo $refilename
ln $filename $refilename
done
Copy the Code
Reply
Like 0
Favorite
View the author
All Replies
WENWEN
deepin
2018-05-16 06:48
#1
深度文管不是支持吗?
Reply
Like 0
View the author
ganrui
deepin
2018-05-16 06:52
#2
https://bbs.deepin.org/post/156501
深度文管不是支持吗?
还没研究过
Reply
Like 0
View the author
ganrui
deepin
2018-05-16 07:02
#3
https://bbs.deepin.org/post/156501
深度文管不是支持吗?
试了下,的确可以
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
【Enhanced Repo】Better Deepin Repo is released
How to fix grub boot menu that has disappeared?
Popular Events
More