由买买提看人间百态

topics

全部话题 - 话题: tcsh
首页 上页 1 2 3 4 5 下页 末页 (共5页)
w*****n
发帖数: 94
1
来自主题: Unix版 - login shell and normal shell?
The '-' of the process names of shells are not added by
themselves. They are given by the process who invoked
shells, indicating that they should act as login shell.
This effect can also be enabled by command-line options,
-login for bash, or -l for tcsh.
p**v
发帖数: 853
2
not sure of your goal, but $? might work.
i am using tcsh.
o**a
发帖数: 86
3
i was using bash. i have tried csh, tcsh, and ash.
all work with it.
c*****t
发帖数: 1879
4
来自主题: Unix版 - How to merge stdout and stderr
csh or tcsh:
p1 |& p2
sh:
p1 2>& 1 | p2
ft
发帖数: 106
5
He uses tcsh.
t**c
发帖数: 97
6
来自主题: Unix版 - TELNET 老断

suppose you are using tcsh
alfter log in, type "set autologout=0"
or add this command in your .cshrc(.tcshrc)
X****r
发帖数: 3557
7
来自主题: Unix版 - 文件改名一问?
I usually use this, but I bet there's a better way doing so
(assuming tcsh)
foreach file ( sige* )
mv $file `echo $file | cut -c -4`.`echo $file | cut -c 5-`
end
p***y
发帖数: 79
8
来自主题: Unix版 - hotkey in unix
use tcsh, set history
ft
发帖数: 106
9
来自主题: Unix版 - hotkey in unix
tcsh, bash, ksh......
a lot of shells do that. If you are root on your machines, edit your
/etc/passwd file. :-)
m*****e
发帖数: 4193
10
来自主题: Unix版 - hotkey in unix

chsh changes /etc/passwd.
Not really. You can use sth like "exec tcsh". It will replace the current
shell. If you can't use chsh or the sysadmin is not very friendly, you can
do it this way.
p*a
发帖数: 592
11
来自主题: Unix版 - about autocompletion
on sun os, using tcsh,
hitting tab won't show me anything unless there's a unique
match. As I remembered it should not be like this, it should
show me all matching file names. Do I need to set sth?
n****e
发帖数: 135
12
来自主题: Unix版 - 怎样改成tcsh?
土问题...
是不是要.cshrc加什么?
多谢.
q*****m
发帖数: 73
13
来自主题: Unix版 - 怎样改成tcsh?
chsh
read man page.
n****e
发帖数: 135
14
来自主题: Unix版 - 怎样改成tcsh?
学校的机器,我想一login就是tsch,而不用
每次login之后打tsch. 操作系统是Soloris 8.
r***o
发帖数: 1526
15
来自主题: Unix版 - 怎样改成tcsh?
how to check if NIS+ is installed?
s**n
发帖数: 449
16
来自主题: Unix版 - 怎样改成tcsh?
check your:
/etc/nsswitch.conf
/etc/nsswitch.files
/etc/nsswitch.nis
/etc/nsswitch.nisplus
if nsswitch.conf == nsswitch.nisplus, then using NIS+. etc.
f******r
发帖数: 45
17
来自主题: Unix版 - 请教个scripts的问题
先打开一个xterm,后在打开的xterm里ssh or telnet到远程服务器。怎么写这样的tcsh
script? thanks a lot!!
e***e
发帖数: 38
18
来自主题: Unix版 - how to turn echo off in shell scipt?
@echo off does not work for me(tcsh)
Thanks
w**n
发帖数: 88
19
来自主题: Unix版 - where is libstdc++
csh/tcsh: setenv LD_LIBARY_PATH $LD_LIBARY_PATH:/usr/local/lib
bourn:
LD_LIBARY_PATH=$LD_LIBARY_PATH:/usr/local/lib
export LD_LIBARY_PATH
在 netview (Net Viewer) 的大作中提到: 】
r********s
发帖数: 179
20
来自主题: Unix版 - 问个问题
用TCSH
m***m
发帖数: 67
21
来自主题: Unix版 - 问个问题
每次login 后,先敲 tcsh (I usually use bash)
f*******d
发帖数: 339
22
来自主题: Unix版 - 问个问题
use tcsh, type chsh to change your shell.
s****e
发帖数: 36
23
来自主题: Unix版 - how can I change csh to tcsh or bash
try chsh..
or edit the /etc/passwd file..
l****y
发帖数: 18
24
来自主题: Unix版 - how can I change csh to tcsh or bash
on Linux, u just need update passwd.
on *BSD , u need update the db file, not plaintxt file passwd
I don't know how about Solaris :-)
br />
p*********r
发帖数: 23
25
来自主题: Unix版 - how can I change csh to tcsh or bash
man chsh
o***z
发帖数: 133
26
来自主题: Unix版 - A question about command time
there's a built-in time command in tcsh
did you try
/usr/bin/time -V
T***B
发帖数: 137
27
来自主题: Unix版 - A question about command time
Thanks. My shell is tcsh.
And the following command works:
/usr/bin/time -o tracktime ./a.out > output

cause
p**v
发帖数: 853
28
加了,没用啊!
tcsh, .cshrc中
set path=($path $HOME/bin), 我的binary在$HOME/bin里,但用
which binary 时,仍然显示旧的binray path, 到底应该怎么加
这个path 呢? 用了alias, 虽然which时是对了,但是whereis 时
还是旧的。怎么能彻底地把旧命令的一切都覆盖呢?
谢谢给予更详细的说明。
i*******n
发帖数: 166
29
来自主题: Unix版 - 如何实现下列功能?

sth like
#!/bin/tcsh
ls
echo "enter the file name"
vi $<
i*******n
发帖数: 166
30
来自主题: Unix版 - 如何实现下列功能?
#!/bin/tcsh
ls mit/bbs/unix/shell
echo "enter the file name"
vi mit/bbs/unix/shell/$<
D**e
发帖数: 10169
31
use csh or tcsh. alias won't work in sh.
D**e
发帖数: 10169
32
it must work.
try this(that is single qoute, not back-qoute):
#!/bin/tcsh
alias t 'ls -1'
t;

this
other
q*****m
发帖数: 73
33

I posted this on Linux board:
for sh/bash,
%time cat filename 2> time.out
for csh/tcsh/bash
%(time cat finename) >& time.out
Does this work for you?
x***o
发帖数: 2
34
来自主题: Unix版 - How to use file modifiers in bash/sh
In csh/tcsh scripts, I use
set basename = $1:r
to obtain the root name of $1.
What's the equivalent in sh/bash scripts?
Thanks.
T***B
发帖数: 137
35
Thanks.
I am using tcsh. I will move to sh to try your advice.

want
have
a*******s
发帖数: 324
36
来自主题: Unix版 - 请问几个关于Sed的问题
I use tcsh.

sed -e /[0-9]/d filename
don't know how to just use only line to do it.
don't know how to just use only line to do it.
I don't know how to easily express non-capital alphabetical character
in "sed".
Is "grep" acceptable?
grep "^[A-Z]" filename
l******t
发帖数: 108
37
来自主题: Unix版 - question
echo $shell
is that what you want?
just checked, only works for csh and tcsh, not for ksh, sh.
don't know about others.
A***e
发帖数: 130
38
来自主题: Unix版 - question
that's for tcsh, for bash, echo $SHELL
a simple way is just type ps, if you do not have too much process on
your current terminal
l*****k
发帖数: 587
39
来自主题: Unix版 - AIX shell configuration
I am using a AIX machine, however, a lot of unix flavors are
not in the shell(I use C shell, no tcsh installed)
first, I can't use tab to auto complete file name
I wrote set filec in .cshrc and soured it, no effect.
second, I can't use up/down arrow to browse commands history
How can I fix it? should I tell the root to do something? (he knows
little about unix, but I can't just tell him that)
Best
c*****t
发帖数: 1879
40
来自主题: Unix版 - AIX shell configuration
The features you talked about are for tcsh...
csh does have file name completion, but instead of using tab, use Esc.
csh has command history name substituion scheme. For instace, !!
means the previous command. !g means the previous command that starts
with g. There are more advanced stuff which you can read from csh
man page.
s**s
发帖数: 242
41
来自主题: Unix版 - 一个unix .cshrc的wenti
用tcsh或bash有这个功能
d****t
发帖数: 26
42
来自主题: Unix版 - 大家都是用什么机子装UNIX?
What kinds of script is it?
The default shell of linux is bash.
If you change the shell of linux system,
(csh, tcsh,...), the script might work.
"man chsh" for more information
There are Solaris for PC and freeBSD for PC.
b*d
发帖数: 75
43
bash 是不是改用 2> 压?
欧 >& 都是给tcsh什么的用的
s**s
发帖数: 242
44
偶的bash就是这样用的,刚试了csh这样也行,sh不行

bash 是不是改用 2> 压?
欧 >& 都是给tcsh什么的用的
q*****m
发帖数: 73
45
来自主题: Unix版 - 如何在perl中运行c-shell file?
Then try to split the file, You can do it in Fortran, C, C++, c-sh,
tcsh, bash, perl. python, ...
Too many choices.
X****r
发帖数: 3557
46
来自主题: Unix版 - ft, 本版备忘录
第一个链接就是扁csh 的。
其实现在的tcsh里该文中提到的很多问题都不存在了……
D****g
发帖数: 2860
47
来自主题: Unix版 - Command history
tcsh can also do
m****t
发帖数: 2684
48
来自主题: Unix版 - 急,定时运行程序的问题
有一project需要我每天定点运行一个程序,我用的是tcsh,请问有没有unix命令可以实现
这样的功能.谢谢.
g****c
发帖数: 2
49
Could you please tell me how to do it?
set mode = vi ?
I'm using tcsh.
Thanks

one
m******y
发帖数: 67
50
在emacs里开了个shell,但是用上下箭头不能象在其他普通shell(e.g. tcsh)
里一样调出上一条命令.知道如何设置吗?
谢先!
首页 上页 1 2 3 4 5 下页 末页 (共5页)