2006/7/12-18 [Computer, Academia/Berkeley/CSUA] UID:43642 Activity:nil | 7/13 Is mail working? Neither incoming nor outgoing mail seems to be
working. I've received no email (not even spam) since last night.
And outgoing mail doesn't seem to be working (or at least it's
delayed more than a couple minutes).
I think there are about 50K messages in the queue... -ax
\_ Is the queue being unqueued. soda's been up for 3 hours
...
|
2005/10/6-9 [Computer/SW/Security] UID:40007 Activity:nil | 10/6 What's the easiest way to get the ip from the env var
SSH_CLIENT="10.10.10.10 1212 22" in bash? I want to use it to
set the DISPLAY env var.
\_ see man pages for any/all of: sed, awk, perl, cut, tr (and many
others).
\_ Why are you doing this? ssh will set DISPLAY itself if you
...
|
2005/8/19-22 [Computer/SW/Unix] UID:39195 Activity:nil | 8/19 I have files full of  s that I NEED to squash, nothing I've tried
works though. (shy of going in with an editor and deleting each one).
They all exist at the beginning of a line and are followed by another
strange charcter "»" if that helps. OS = Linux.
\_ sed is your friend.
\_ tr -d
...
|
2005/4/15 [Computer/SW/Unix] UID:37200 Activity:very high | 4/15 Unix Wizards, how would I sort a list like this in numerical order?
I can't figure our the sort syntax. I am not a programmer!
+0.04gb
+0.11gb
+1.98gb
+10.94gb
...
|
2005/1/4-5 [Computer/SW/Unix] UID:35545 Activity:moderate Edit_by:auto | 1/4 Hello UNIX command line gurus, let's say I have a file called
filenames.log that contains file names, like /usr/bin/hello,
/media/dvd/wayne's world, /media/music/my music!.mpg. I'd like
to do something like:
% cat filenames.log | xargs tar rvf /backup/today.tar
However, I can't do that because I need to escape characters
...
|
2004/5/26 [Computer/SW/OS/Linux] UID:30427 Activity:high | 5/25 What should I do to remedy this?
% df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 -1022690446876 1 0 33% /
/dev/sda1 -16257820653 1 0 10% /boot
/dev/hda1 -5279228168420 1 0 72% /var
...
|
2004/1/30 [Computer/SW/Unix] UID:29769 Activity:nil | 1/29 sed help. How do I take a file, and replace all newlines/returns with
spaces, so that a multi-line file becomes one long line?
ideally, something like sed "s/$\N/ /g", but this doesn't work.
\_ need you use sed? tr works too: cat /etc/motd | tr -d '\n'
\_ thanks that rocks.
\- unless you need to batch process a whole lot of files,
...
|
2003/11/18 [Computer/SW/Unix] UID:29642 Activity:nil | 11/18 How do you remove newlines with a one-line sed command
cat /etc/motd | sed "s/\n//" doesn't do it.
\_ tr -d "\012" < /etc/motd
\_ sweet! thanks.
...
|
|