Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、ファイル名がありますxxdatafile_20110120123030_12342.dat。"XXdatafile_"ファイル名から抽出したい。
xxdatafile_20110120123030_12342.dat
"XXdatafile_"
UnixでKshを使用してそれを行うにはどうすればよいですか?
$ file=xxdatafile_20110120123030_12342.dat $ echo ${file%%_*} xxdatafile