$IFS和set
$IFS是内部字段分隔符的缩写。它决定Bash解析字符串时将怎样识别字段,或单词分界线。默认为(空格、制表符、换号)
修改$IFS:
[xiluhua@vm-xiluhua][~/shell_script]$ IFS=":" #指定Bash内部字段分隔符为":" [xiluhua@vm-xiluhua][~/shell_script]$ set a b c #使用set命令,将x,y,z赋予位置参数1,2,3 [xiluhua@vm-xiluhua][~/shell_script]$ echo "$*" #打印所有参数
a:b:c
随机推荐
- 【Netty学习】 ChannelHandler 改动及影响
channelHandler 在Netty 4.x版本有了相当大的改动 http://netty.io/wiki/new-and-noteworthy.html 官网的更新改进说明. 以下节选官网 ...
- BlockingQueue的使用
本例介绍一个特殊的队列:BlockingQueue,如果BlockQueue是空的,从BlockingQueue取东西的操作将会被阻断进入等待状态,直到BlockingQueue进了东西才会被唤醒.同 ...
- UITextField属性
0. enablesReturnKeyAutomatically 默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的. 1.borderStyl ...
- iOS添加自动更新的代码
- (void)versionUpdate{ //获得当前发布的版本 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_ ...
- python password输入
1.linux下用getpass,没有星号提示,符合linux风格 from getpass import getpasspwd = getpass('Enter the password: ') 2 ...
- TNS-01201: Listener cannot find executablen
有哥们说,他的数据库监听无法启动,报如下错误: 让其查看一下环境变量是否设置,说设置没问题,但是还是报同样的错误.只好让其截图了: 1.监听文件 2.profile文件 从上面的截图中,可以看出,pr ...
- NSDictionary
// ------------------------------字典------------------------------------------------- NSDictionary *d ...
- [Intellij IDEA]File size exceeds configured limit(2560000). Code insight features are not available
在使用 IDEA, 发现一个问题File size exceeds configured limit (2560000). Code insight features not available.
- compilation filed Unable to write to path xxxxxx 遇到这种情况的话
如果是xib文件的话 查看target —>Build Phases —> Copy Bundle Resources里面查看路径. 可能有重复路径导致编译不通过.
- eclipse jsp 加载服务器tomcat
1.window->Preferences