Search found 177 matches

by johnraff
Wed Dec 04, 2013 4:04 am
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: PDF Computer Books
Replies: 5
Views: 2253

Re: PDF Computer Books

Thanks both of you.

Image
by johnraff
Thu Nov 28, 2013 6:30 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

find | cut -c 3- | env -i egrep '\.(mpc|mp4|mp3|flac)$' > mp3.txt Yeah I couldn't get regex to play nice in find -shock! Hmm... felt obliged to come to find's defence... how about: find . -iregex '.*\.\(mpc\|mp4\|mp3\|flac\)$' -printf '%P\n' > mp3.txt Have to escape the ( and | but saves some pipes.
by johnraff
Tue Nov 26, 2013 6:15 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: I want to play a game.
Replies: 21
Views: 7835

Re: I want to play a game.

4

Image
by johnraff
Mon Nov 18, 2013 4:03 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: The REAL question for His Mechanical Baconness:
Replies: 19
Views: 4754

Re: The REAL question for His Mechanical Baconness:

wuxmedia wrote:My bro was veggy for 20 years from birth, what turned him? Macdonalds chicken nuggets 8(
[youtube]https://www.youtube.com/watch?v=T67DvoH2H3E[/youtube]
by johnraff
Mon Nov 18, 2013 3:59 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: The REAL question for His Mechanical Baconness:
Replies: 19
Views: 4754

Re: The REAL question for His Mechanical Baconness:

Hi antiVortex! A familiar name from CrunchLand. I'm a noob here too, but likely to remain so after you're a master griller.
by johnraff
Mon Nov 18, 2013 3:53 pm
Forum: LINUXBBQ NEWS (/var/mail)
Topic: LinuxBBQ Wiki
Replies: 177
Views: 79442

Re: LinuxBBQ Wiki

machinebacon wrote:This was due to opening registration for less than 12 hours. We got like 400 new users registered in that time.
good grief!!
No more new user registrations, except if the user accepts that I set the user/password up for him.
That sound like the way to go.
by johnraff
Mon Nov 18, 2013 3:48 pm
Forum: SUPPORT (/usr/share/doc)
Topic: Absinth
Replies: 62
Views: 18817

Re: Absinth

/still offtopic find /some/*path/with/asterisks* #without quotes is getting the shell to expand the asterisks and giving the results to find as a list of arguments, ie directories to enter recursively. Maybe something like find /some -path '*path/with/asterisks*' would more likely get what you want?...
by johnraff
Sat Nov 16, 2013 6:13 pm
Forum: SUPPORT (/usr/share/doc)
Topic: Absinth
Replies: 62
Views: 18817

Re: Absinth

hey guys, did 'find' always need quotes to use the * wildcard? yes for regex things like {.avi,.mkv} I don't remember ever needing it, till just recently... Yes. If you leave the * exposed, the shell will get its fingers on it and substitute whatever it can. Sometimes it doesn't matter, but better ...
by johnraff
Fri Nov 15, 2013 6:38 pm
Forum: UPGRADE WARNINGS (/usr/bin/apt-get)
Topic: Lightdm (grave bug)
Replies: 19
Views: 7052

Re: Lightdm (grave bug)

Image
by johnraff
Thu Nov 07, 2013 5:52 pm
Forum: SCREENSHOTS (/usr/bin/scrot)
Topic: Mixed bag
Replies: 1525
Views: 383556

Re: Screenshots

by johnraff
Wed Nov 06, 2013 4:24 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

^ah got it. Thanks. It looks as if there might not have been anything wrong with your original code anyway. I didn't see the * (blame it on the font+my eyes) in front of color in " ...but someone put a '*color' at the beginning of..." so of course as my test file had no asterisks it didn't...
by johnraff
Wed Nov 06, 2013 2:14 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

@joe you sure that worked? I've just tried it on a random list file (not Xresources) to no effect. However, this put a 'URxvt' at the front of every line (no discrimination):

Code: Select all

sed -i.bak 's/^/URxvt./' list
Thanks for that -i.bak tweak though!

@dkeg that ^a^b trick is amazing!
by johnraff
Tue Oct 29, 2013 6:12 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

wuxmedia wrote:^^ shouldn't that be 'pstree' ?
YES!!

Sorry bout that - a beer too many?
Thanks for catching it. Image
by johnraff
Sat Oct 26, 2013 5:49 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: New on the market / Fresh from the repos
Replies: 231
Views: 60585

Re: New on the market / Fresh from the repos

This guy posts some interesting software: http://onethingwell.org/
by johnraff
Sat Oct 26, 2013 5:46 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

Does file A contain the contents of file B? (sort of multi-line grepping) Check if string contains substring (there are other ways of course): [[ $string = *$substring* ]] && echo "$substring is in $string" This works even if the strings contain newlines, so you can compare text fi...
by johnraff
Sat Oct 26, 2013 5:37 pm
Forum: HOW-TO (/usr/share/man)
Topic: Post your Command line tricks
Replies: 283
Views: 105512

Re: Post your Command line tricks

Joe's recursive ls reminded me,

Code: Select all

pstree
to see your processes and their parentage.
by johnraff
Sat Oct 26, 2013 5:33 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: Meet the meat!
Replies: 242
Views: 105346

Re: Meet the meat!

^Hainan's a heavy-duty domestic Chinese tourist destination these days? Many foreign visitors?
A (Japanese) friend went there many years ago and I got the impression that then it was a pretty isolated, nothing-happening type place.
by johnraff
Wed Oct 23, 2013 4:49 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: Meet the meat!
Replies: 242
Views: 105346

Re: Meet the meat!

^yeh now I remember to click it to full size, it looks like sliced pork belly. Probably good.

btw Bacon how was Hainan?
by johnraff
Wed Oct 23, 2013 2:21 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: Meet the meat!
Replies: 242
Views: 105346

Re: Meet the meat!

What's that on the rice - abalone?
by johnraff
Tue Oct 22, 2013 5:24 pm
Forum: INTRODUCTIONS & CHAT (/dev/null)
Topic: Meet the meat!
Replies: 242
Views: 105346

Re: Meet the meat!

edit: Uh-oh I missed a whole page of posts again... Anyway that salad sounds pretty good. Or maybe just boil then and eat with a dab of mustard and some brown bread - salad on the side. (Maybe don't need the mustard if they're spicy.) Or put those fried morsels in fried rice. Or cook them in a toma...