echo "super-super.show.s01.e01" | grep -oPi '(?<=-)[\w\W]+(?=\.s\d\d)|s\d\d|e\d\d' | parallel -N3 ln -sf ~/super-super.show.s01.e01 ~/TV/{1}/{2}/{3}
# tries to make ~/TV/super.show/s01/e01 failes due to no such file or directory
我如何编写代码以创建所需的目录?
如果字符串中没有e01,它会尝试创建指向:
~/TV/super.show/s01/{3}
我怎样才能编写我的代码,以便它创建链接到:
~/TV/super.show/s01