由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - IFS shell script
相关主题
Need urgent help on a samll shell script problem!how to convert csh shell script to dos batch file
Shell programming problem, Thx!a question in shell script
which shell is best?Help! shell programming
shell programming[转载] a question about shell script
where can I find some good website for C Shell ?Shell Script Question about Hostname
Shell ScriptShell Script Question
为什么我就是不会写Shell script?Help on shell script
How to set environment variables for CGI scripts?[转载] Re: shell script question
相关话题的讨论汇总
话题: ifs话题: origifs话题: given话题: shell话题: value
进入Unix版参与讨论
1 (共1页)
b**********e
发帖数: 13
1
I am new to shell script. Could some one explain the following line?
ORIGIFS="$IFS"
IFS="${IFS}:"
set -- $1
IFS="$ORIGIFS"
echo $1
I understand that IFS is the internal field seperator. in the first line
ORIGIFS already been given the value $IFS, and IFS been given the value
${IFS}: but why does IFS given the value $ORIGIFS again?
Many thanks!
1 (共1页)
进入Unix版参与讨论
相关主题
[转载] Re: shell script questionwhere can I find some good website for C Shell ?
Korn shell scriptShell Script
help shell script (waiting on line)为什么我就是不会写Shell script?
Shell problem: read a fileHow to set environment variables for CGI scripts?
Need urgent help on a samll shell script problem!how to convert csh shell script to dos batch file
Shell programming problem, Thx!a question in shell script
which shell is best?Help! shell programming
shell programming[转载] a question about shell script
相关话题的讨论汇总
话题: ifs话题: origifs话题: given话题: shell话题: value