由买买提看人间百态

topics

全部话题 - 话题: csh
首页 上页 1 2 3 4 5 6 7 8 下页 末页 (共8页)
t*********s
发帖数: 5
1
what shell, (t)csh or bash ...

the
$column in shell is different from $column in awk
for bash(no space allowed around the '='):
value=$( awk -v col=$column '{ print $col }' < input )
F**e
发帖数: 593
2
来自主题: Programming版 - how to program a shell extension
thank for your reply.
I guess mysql is a bad example. What I want is my own shell that first can
duplicate everything in c-shell, so that you enter "myshell", all the shell
behavior remains the same as in c-shell. Then I would add in some of my own
built-in commands.
So first step, how would you replicate a csh/tcsh/bash?
X****r
发帖数: 3557
3
来自主题: Programming版 - foreach statement 使用
This should work -- I suspect you have quotation issue.
Did you type it from the command line, or you put them
inside a script file? If for the latter, did you start
the file with #!/bin/csh or something like that?
Also, print out the result of
echo $WORKDIR/*.dat.gz
to see if there is any special character in file names.
d****i
发帖数: 4809
4
来自主题: Programming版 - 真正有货的,没有骂人的
嗯,vi除了写Java不太适合,其他UNIX/Linux上的语言都可以用,C, C++, bash, ksh,
zsh, csh, Perl, Python, PHP, Ruby, JS, .....
z****e
发帖数: 54598
5
来自主题: Programming版 - 王垠的这篇写的不错
他说的批评就是这个啦
“所以我认为脚本语言是一个祸害,它几乎永远是错误的决定。”
什么是“脚本语言”
很多人都会用一些“脚本语言”(scripting language),却很少有人真正的知道到底
什么是脚本语言。很多人用 shell 写一些“脚本”来完成日常的任务,用 Perl 或者
sed 来处理一些文本文件,很多公司用“脚本”来跑它们的“build”(叫做 build
script)。那么,到底什么是“脚本语言”与“非脚本语言”的区别呢?
其实“脚本语言”与“非脚本语言”并没有语义上,或者执行方式上的区别。它们的区
别只在于它们设计的初衷:脚本语言的设计,往往是作为一种临时的“补丁”。它的设
计者并没有考虑把它作为一种“通用程序语言”,没有考虑用它构建大型的软件。这些
设计者往往没有经过系统的训练,有些甚至连最基本的程序语言概念都没搞清楚。相反
,“非脚本”的通用程序语言,往往由经过严格训练的专家甚至一个小组的专家设计,
它们从一开头就考虑到了“通用性”,以及在大型工程中的可靠性和可扩展性。
首先我们来看看“脚本”这个概念是如何产生的。使用 Unix 系统的人都会敲入一些命
令,... 阅读全帖
d****i
发帖数: 4809
6
来自主题: Programming版 - 哪个大型应用系统用python写的啊?
还有一个原因我猜是:Linux和Python实际上都是欧洲人发明的,一个芬兰人,一个荷
兰人。而UNIX和Perl/Bourne Shell/bash/ksh/zsh/csh/tcsh等等Shell都是美国人发明
的,土生土长的Made in USA,所以Python和Linux嫁接很自然了。
d****i
发帖数: 4809
7
来自主题: Programming版 - 对coding初学者,我的建议是
JavaScript和Perl并不容易,都比Python要难。shell也要看哪种shell,zsh, csh,
tcsh, ksh, bash? bash最简单。
j******l
发帖数: 1068
8
来自主题: Security版 - TTSSH?
用 TTSSH 连接远程 server,id同 password 入力后,出错信息如下:
bin/csh: No such file or directory
请问这是server 的问题,还是我这边 client端的设置问题?
谢谢
kb
发帖数: 73
9
来自主题: Security版 - TTSSH?
It means there is no csh on the server you connected. You should ask help from
the server system administrator for this kind of problem. Either you don't
cshell or some misconfiguration.
T*******n
发帖数: 493
10
来自主题: TeX版 - Question about latex.
The search path for the \input command can be controlled by the
TEXINPUTS environment variable. If you say something like the
following (Linux/UNIX csh/tcsh syntax):
setenv TEXINPUTS './/:'
then LaTeX will search the current directory and all subdirectories
for the input file. If some of the files in different subdirectories
have the same name, you WILL run into problems.
You can also try putting the following code after \documentclass
but before \begin{document} (and don't mess around wit
T*******n
发帖数: 493
11
来自主题: TeX版 - LATEX Search PATH Problem
A few ideas to debug this:
(1) Verify that you are using bash, not sh/csh/tcsh (on some platforms
if you invoke bash as sh, it won't read the .bashrc file).
(2) What does "echo $TEXINPUTS" (without quotes) show? This should
tell you whether the .bashrc file was read correctly.
(3) What does "kpsepath tex" show? The custom path should appear at
the end.
(4) What does "kpsewhich aguplus.cls" show? LaTeX using kpsewhich to
find the files it needs (and when it finds several files by t
h******a
发帖数: 198
12
now I could only think up one way:
foreach file(*.cpp)
mv $file `basename $file .cpp`.C
end
for tcsh/csh
ft
发帖数: 106
13
来自主题: Unix版 - [转载] About the history
【 以下文字转载自 Linux 讨论区 】
【 原文由 ft 所发表 】
I recently installed a linux, but the configuration is still poor.
The up and down arrow key is not working when I want to make it
work like doskey. I wonder if anyone could tell me how to set
it up? I am using bsh, csh, and tcsh, and I hope to know
how to set them up respectively.
Thank you.
h******a
发帖数: 198
14
来自主题: Unix版 - [转载] About the history
bsh,csh doesn't not support history.
bash, tcsh, ksh do.
bash is the default shell for Linux system, so it should work.
perhaps you need to write "set -o history" into your .bashrc in ur
home directory.
c*****t
发帖数: 1879
15
来自主题: Unix版 - [转载] About the history
one correction, csh does support history, though in a wierd
way.
h******a
发帖数: 198
16
来自主题: Unix版 - [转载] About the history
csh does support command history,
like !!,!n,!-n,!cmd
but not like bash/tcsh/ksh doskey style
h******a
发帖数: 198
17
in sh/bash/ksh,
PS1="whateve U want"
in csh/tcsh
set prompt="whatever"
ab
发帖数: 37
18
来自主题: Unix版 - which shell is best?
csh?
tcsh?
ksh?
sh?
ab
发帖数: 37
19
来自主题: Unix版 - which shell is best?
In some books about the shell script, ksh is prefered.
I'm used to csh.
I wonder why ksh is perfered
w*****g
发帖数: 198
20
来自主题: Unix版 - which shell is best?
right i would imagine so since redhat uses bash as default shell
but before linux got popular, most people use csh and its enhanced version
tcsh
B**z
发帖数: 153
21
来自主题: Unix版 - which shell is best?
csh is more popular in college,
ksh is more popular in industrial
ksh is more powerful, it is a superset of sh
l******t
发帖数: 108
22
来自主题: Unix版 - help
我登录以后module初始化的shell是bash,怎么设置
成初始化的shell是csh?
a*****i
发帖数: 4391
23
来自主题: Unix版 - help
set is a csh/tcsh command and export is a bash one
You should use export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../usrlib if you are using
bash as your shell.
c**o
发帖数: 166
24
I would suggest you check out this page first:
http://www.perl.com/pub/language/versus/csh.html
Then, maybe you can check this page out:
http://uwsg.ucs.indiana.edu/edcert/session3/shell/
h******a
发帖数: 198
25
来自主题: Unix版 - how to let awk not print?
awk '!/^$/' urfile
perl -pi -e 's/^$//g' urfile
sed -ne '/^$/!p' urfile
if using tcsh/csh, be careful of using !
g****a
发帖数: 60
26
the program is very simple
=================
#!/bin/csh
cat *.h include/*.h > temp1
grep ^#define temp1 > temp2
=====================
but after showing :
Selected SIMSCRIPT II.5 (1.8) for OpenLook 3.0 on Sun Sparc
it just stay there for ever. after I stop the program using
Ctl-D, I saw temp1 is there.
why.
t****e
发帖数: 2
27
I need write a new shell .SO I want to find how the other
write it>
m*******m
发帖数: 182
28
Find a unix source tree, such as *BSD, and it has shell (sh)
code there.
m****m
发帖数: 165
29
来自主题: Unix版 - Re: 想登录后的shell是bash
You need to make sure the bash is installed in your
$HOME/bin/bash (I am sure you know).
If your system have already bash available (I know you have
'cause you can type bash after login), normally it will be
under /bin
Add following lines to your .profile and it will do the job
for you.
if [ -x /bin/bash ]; then
exec /bin/bash
fi
You can change to ksh & csh by this way as well.
b**s
发帖数: 67
30
来自主题: Unix版 - Change shell to tcsh?
Usually I use bash, but this machine doesn't have
bash. The only sensible alternative is tcsh.
How can I change default shell to tcsh from csh?
Thanks.
t********e
发帖数: 880
31
来自主题: Unix版 - .cshrc?.login?.profile?
should be .login for csh bah
c*****t
发帖数: 1879
32
来自主题: Unix版 - .cshrc?.login?.profile?
You should man csh/ksh/tcsh, depending on the shell
used. There, hit '/' key to do a search on 'FILE'.
That should immediately bring you to the files used.
Usually, the man page will tell you the exact order
of the files being processed.
j***y
发帖数: 87
33
来自主题: Unix版 - .cshrc?.login?.profile?
for csh, tcsh, .cshrc and .login are executed
for ksh, bsh, bash, .profile and .login are executed.
But I think bwang's question has some ambiguity. If he just wants to execute
some command once in one session, like xhost +font under an X environment,
then he shouldn't add entries in these startup files.
instead he should check what kind of session manager he is using and modify
the corresponding script, like .xsession and so on.
v*****r
发帖数: 1119
34
是设在 global profile 里 (/etc/profile or /etc/csh.profile) 不行吗?
g*****y
发帖数: 26
35
use setenv in C shell
or use CLASSPATH=...;export CLASSPATH in b sh
here is my CLASSPATH(csh)
setenv CLASSPATH .:/net/jaguar/exe/JDK/jdk1.2.2/lib/dt.jar:/net/jaguar/exe/JDK/j
dk1.2.2/lib/tools.jar:/tmp/toolkit/build/classes:/lxh/vvc/docs/reference/resdiff
/alc.jar:/home/lambliu/JavaWebServer1.1.1/classes:/home/lambliu/JavaWebServer1.1
.1/lib/jws.jar
good luck!
j***y
发帖数: 87
36
try cygwin,
which simulates most of the Unix commands.
u*c
发帖数: 3
37
来自主题: Unix版 - 问一个关于at的问题
请教高人,在用at的时候如果用stdin做input而不是用文件input,
该怎么做?比如,假设我想在明天执行一个叫做command的可执行文
件:
% at tommrrow
at> csh
at> command
at>
然后怎么办?怎么退出编辑状态?
谢谢!
s******n
发帖数: 15
38
csh & tcsh,
(command > result.out) >& error.out
s******n
发帖数: 15
39
sh, csh, ksh, bash, tcsh... what are the differences between
them? anyone can give some brief introdutions or suggest some
books on this topic. thanks.
l******o
发帖数: 25
40
tanks a lot. I am new in the states.
The sun workstation is poor configurated, and
I can not even find a cc or gcc.
more importanrtt i am not the sys adm,
pls tell me where can i find the pre-builded version of
cxterm for solaris. so i can refer the post in bbs
to configuare my poor station.
also is there anybody know how to install bash in
solaris and config it as the default shell in
instead of the default csh?
thanks
l******o
发帖数: 25
41
来自主题: Unix版 - Enviroment Config Help
seems you need bash.
I don't know whether these 2 functions are supported in csh or notW
i***f
发帖数: 10
42
来自主题: Unix版 - Enviroment Config Help
man csh, it seems that those two are already there, check TERMINAL TYPE
and profiles like .tcshrc.
i***f
发帖数: 10
43
来自主题: Unix版 - Enviroment Config Help
In csh, file completion and history substitution is realized by setting
environment variables, while in tsch it's there by default. That's
why I sugguest to check TERMINAL TYPE or profiles like .tcshrc to
see if something wrong.
i***f
发帖数: 10
44
来自主题: Unix版 - Enviroment Config Help
Thanks storm, your analyse is really good.
Sign, haven't using csh after getting used to ksh for a long time,
I am confused about ESC and TAB. Sorry for the wrong answer in
prevoius message.
y***y
发帖数: 56
45
来自主题: Unix版 - 我的cxterm比较怪
is that because of your SHELL problem?
switch b/w BASH and CSH, try try. not sure.
l******o
发帖数: 25
46
来自主题: Unix版 - HELP, how to install local file!
thank you ,you are right
I first file it, and find it is a plain english file
then i try to
pkgadd -d /PATH/bash-2.0.3-sol7-sparc-local
then I amusing bash now, the feeling is great.
much bettrger then csh, hehe.
d*****r
发帖数: 147
47
来自主题: Unix版 - SOLARIS8的几个问题
Add a path to your env, if you use csh,
type:
setenv PATH /usr/css/bin:$PATH
you can add it to your c shell profile, it's in your home
directory,
.cshrc
it's a hidden file.
o**a
发帖数: 86
48
i was using bash. i have tried csh, tcsh, and ash.
all work with it.
d******e
发帖数: 2265
49
csh shell series
alias setprompt 'set prompt="`whoami`:${cwd}>"'
setprompt
alias cd 'chdir \!* && setprompt'
首页 上页 1 2 3 4 5 6 7 8 下页 末页 (共8页)