2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil | 10/24 What's an easy way to see if say column 3 of a file matches a list of
expressions in a file? Basically I want to combine "grep -f <file>"
to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
I can do this with "egrep -f " and use regexp instead of strings, but
was wondering if there was some magic way to do this.
\_ UNIX has no magic. Make a shell script to produce the ask or egrep
...
|
2011/3/12-4/20 [Consumer/CellPhone, Computer/HW/Laptop] UID:54057 Activity:nil | 3/12 I am curious what others think of tablets like iPad. They don't seem
useful to me, but I use my computer for more than web browsing,
Facebook, and Twitter. Why would I buy one instead of a laptop?
They seem like a disabled laptop to me, but at a higher price.
\_ You are most likely a coder. iPad is not for coders. They are
what you get your non-technical friends. Or musicians. Look at
...
|
2011/2/6-19 [Computer/Networking] UID:54028 Activity:nil | 2/5 hmm.
$netstat -at | grep LISTEN
tcp 0 0 *:43300 *:* LISTEN
\_ this is an sshd
tcp 0 0 *:49416 *:* LISTEN
tcp 0 0 *:36201 *:* LISTEN
...
|
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/25-29 [Computer/SW/Unix] UID:52456 Activity:low | 1/23 may the awesome rootstaff please apt-get install:
colorgcc, colordiff, colormake
thanks!
\_ Done. In the future email such requests to root@csua for
faster response
\_ totally, understood. Altho yeah I do like asking for
...
|
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
...
|
|