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.
在使用 csh 提取字符串时,我几乎不需要任何帮助。我有一个包含以_abc 结尾的长字符串的变量。我需要使用 csh 提取除 _abc 之外的整个字符串。请帮忙
你应该有basename可用的命令,在这种情况下你想要
basename
echo `basename mystring_abc _abc` >> mystring