ksh
Extract part of file name using KornShell
I have a file name, for example: xxdatafile_20110120123030_12342.dat. I want to extract \"XXdatafile_\" from the file name.[详细]
2023-02-06 11:39 分类:问答Custom PS1 prompt in .kshrc not working
I have to work with a NFS user id between two hosts: A running Ksh 93 and开发者_如何学JAVA B running pdksh 88.[详细]
2023-02-05 22:59 分类:问答What is the difference between $(command) and `command` in shell programming?
To store the output of a command as a vari开发者_Go百科able in sh/ksh/bash, you can do either var=$(command)[详细]
2023-02-04 08:22 分类:问答SharpSsh - script runs twice in csh and ksh
i\'m running a script from ASP.NET/C# usin开发者_Python百科g SharpSsh. I realize when the script runs and i do a ps -ef grep from unix, i see the same script running twice, one in csh -c, and the othe[详细]
2023-02-04 03:44 分类:问答Why does $RANDOM generate a similar sequence of values inside two for loops in a shell script?
Here\'s the script: #!/bin/ksh (for k in $(seq 6); do echo $RANDOM; done) > a.txt (for k in $(seq 6); do echo $RANDOM; done) > b.txt[详细]
2023-02-04 02:17 分类:问答Remapping keys for ksh vi mode
In my .vimrc file I have the line inoremap jj << Esc>> (I can\'t live without this :)) I wish to ha开发者_开发知识库ve the same remap while using ksh in set -o vi mode, any advice on[详细]
2023-02-04 00:39 分类:问答Is there a shell simulator
Is there a KornShell (ksh) simulator for practi开发者_如何转开发cing commands?You don\'t want a simulator, run the real thing (it\'s tiny!).[详细]
2023-02-03 19:50 分类:问答FTP Error Handling
I have a KornShell (ksh) script which writes out FTP script and executes to get some files from windows server to UNIX.[详细]
2023-02-03 16:08 分类:问答shell script variable use
I\'ll get to the meat and bones: MY_VAR=6 until [$MY_VAR = 0] do dir/dir_$MY_VAR.log ps | grep \"NAME_$MY_VAR.ksh\"[详细]
2023-02-03 02:06 分类:问答`export PS1='value'` does not propagate to (Korn) subshells for root?
Please co开发者_运维百科nsider the following /root/.profile: export PS1=value1 export x=value2 How come the login shell shows the expected prompt (and $x as value2), while the subshells keep showin[详细]
2023-02-02 17:58 分类:问答
加载中,请稍侯......