由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - bourne shell program Question
相关主题
UNIX command to[转载] QUestion about Perl
question about sed[转载] Questions about thread.
which shell is the best among csh, ksh, bsh?mget question in ftp
a puzzleQuestion about telnet
bash programming problem on stringQuestions about KornShell
read file help!question on "strings"
how to execute a.out? (a stupid question)an interesting question
[转载] Question about Firebird BBS 3.0a question about awk
相关话题的讨论汇总
话题: question话题: bourne话题: newstring
进入Unix版参与讨论
1 (共1页)
e***e
发帖数: 38
1
$name = something.c
how do i get the string 'something'?
thanks
c*****e
发帖数: 32
2

newstring=${name%.*}
the newstring 的值是你想要的。

【在 e***e 的大作中提到】
: $name = something.c
: how do i get the string 'something'?
: thanks

1 (共1页)
进入Unix版参与讨论
相关主题
a question about awkbash programming problem on string
question about viread file help!
Old Questionhow to execute a.out? (a stupid question)
用了个野蛮办法解决了Re: Help! A question about "sudo"[转载] Question about Firebird BBS 3.0
UNIX command to[转载] QUestion about Perl
question about sed[转载] Questions about thread.
which shell is the best among csh, ksh, bsh?mget question in ftp
a puzzleQuestion about telnet
相关话题的讨论汇总
话题: question话题: bourne话题: newstring