Saturday, March 29, 2008

if you're not careful, you might learn something before it's done - cat and screen

cat makes line numbers

natasha:~/foo briandunbar$ cat foosrt
3
46
52
10
30
natasha:~/foo briandunbar$ sort -n foosrt | cat -n
1 3
2 10
3 30
4 46
5 52


You can put the hostname in screen. Here I've got it in the status line

natasha:~ briandunbar$ cat .screenrc | grep caption
(snip)
caption always "%{wB} %H %{kk} %{gB} %n %t %{kb}| %{wb}%W %= %{kk} %{wB} %D %Y.%m.%d %C %A "
(snip)


Which looks like this ..





Subject Line Tip O' the Hat
.
blog comments powered by Disqus