当前位置:网站首页>Deepin get file (folder) list

Deepin get file (folder) list

2022-07-05 07:28:00 work-harder

background

  • deepin 20,
  • Get a list of pure file names , One file name per line

Way

  • Use ls -1 (-1, It's the number. 1, Not lowercase letters L)
  • Use 2 this cut: ls -l | cut -d":" -f2 | cut -d" " -f2 (ls -l, Lowercase L)
  • The following figure for ls -l ( A lowercase letter L) Complete display of
  • -d":", No row of the original output result is fixed at ":", Select as the division symbol
  • -d" ", After split , The space in the middle is used as the division symbol ( Assume that the file name has no spaces )
    ls -l Screenshot of
原网站

版权声明
本文为[work-harder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140555475672.html