作者:0鞋包控0 | 来源:互联网 | 2023-07-21 10:37
justaquickquestion.Iwanttousemyinodenumberinmybashscripthowever,Ineedsomehelp.只是
just a quick question. I want to use my inode number in my bash script however, I need some help.
只是一个简单的问题。我想在我的bash脚本中使用我的inode编号,但是,我需要一些帮助。
I'm using command ls -i "filename"
, which echoes "inode number" "filename". The problem is, I only need inode number. Is there a way, where i can "slice" the output?
我正在使用命令ls -i“filename”,它回显“inode number”“filename”。问题是,我只需要inode号码。有没有办法,我可以“切片”输出?
2 个解决方案