2009/12/9-2010/1/13 [Computer/SW/Unix] UID:53586 Activity:nil | 12/8 Is there a bash equivalent to tcsh's history-search-backward ?
\_ There's something similar called... history-search-backward. It
is a bit more limited, in that it only searches for strings and
not glob patterns. You may find reverse-i-search to be useful also.
...
|
2009/8/18-9/1 [Computer/SW/Unix] UID:53284 Activity:nil | 8/18 Is it possible to truncate your path name in your prompt in tcsh?
Tsch veterans REPRESENT! I know this is how to do it in bash:
# truncate path: returns $1 truncated to $2 chars, prefixed with ...
truncate_path () {
if [ -z "$1" -o -z "$2" ]
then
...
|
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil | 8/18 Hi again, new freebsd guy here again, in bash I was able to go
LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
I managed to do this in tcsh by using setenv in a shell script
that setenv's the lib path and then executes $1, just wondering
if there was a way to do it in 1 line from the cmd line as in bash?
Thanks, btw %2c or %3c worked. Freebsd, tcsh and vi forever!
...
|
2009/1/20-26 [Computer/SW/Unix] UID:52420 Activity:low | 1/20 I have a rather common shell-scripting problem, but I am not sure
how to do it in csh/tcsh. I want to check the ctime (last
modified time) of a file. If it is older than, let say, 1
hours, do something, older than 3 hours, then do something +
something else. Any hints on how to do this? do i need to
convert it to epoch to perform such manipulation? thanks
...
|
2009/1/20-26 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:52425 Activity:nil | 1/20 I've been using tcsh as shell program tool (i know, bad shell to
do scripting). One thing I've noticed when I extract xml file
is that the variable type automatically change from
integer/string to... almost an array-like data structure when
the output of the xml key/value is more than one (it's more
like a string separated by space, but I was very impressed as
...
|
2009/1/13-22 [Computer/Theory] UID:52367 Activity:kinda low | 1/13 I am writing a commandline parser for a class and I could use some
tips for algorithms to use. (The project is over and done so I am
not cheating, but I am dissatisfied with my end result.) I STFW and
didn't come up with too much I liked. I read the source for some
shells like tcsh and that is *WAY* too complicated and relies on
a lot of other code. I know that browsers and other apps have
...
|
2009/1/5-8 [Computer/SW/Unix] UID:52313 Activity:kinda low | 1/3 no hurry but do you know of:
$ chsh
Password:
Enter the new value, or press return for the default
Login Shell [/usr/local/bin/bash]: /bin/zsh
failed: Insufficient access
...
|
2008/11/24-28 [Computer/SW/Unix] UID:52090 Activity:nil | 11/23 How do you find the max # of forkable threads in a unix
environment? Is it system or user based?
\_ getrlimit, or ulimit -a (in bash)
...
|
|