LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old
Rating: 2 votes, 3.00 average.

Mass File Renamer: By Number Sequence

Posted 09-13-2008 at 10:19 PM by ghostdog74

Code:
#!/bin/bash
## Change file names into a sequence of numbers.
NO_ARGS=0 
E_OPTERROR=65
DEBUG=0
FNAME="f"
maxdepth=1
directory=`pwd`
set -o noglob

#---- Functions ------------#

usage() {
 printf "Usage: `basename $0` [-D directory] [-M depth]  [-s startseq] [-e endseq] [-p pattern] [-d] [-X] [filename(s)]\n"
 cat << EOF
        -D : starting directory. Default=current
...
Senior Member
Posted in Uncategorized
Views 2020 Comments 0 ghostdog74 is offline
Old
Rating: 2 votes, 3.00 average.

Simple Hangman Game

Posted 09-16-2008 at 07:35 AM by ghostdog74

I was so bored today, that i created this simple hangman game to entertain myself. Makes use of a dictionary file called "english" to get random word to guess. No fancy stuff like drawing the man, only number of tries (set to 10)

Code:
#!/bin/bash

awk  'BEGIN{
    dictfile="english"
    l="abcdefghijklmnopqrstuvwxyz"
    while (1) {
        srand()
        lm=split(l,letters,"")
...
Senior Member
Posted in Uncategorized
Views 1466 Comments 0 ghostdog74 is offline
Old
Rating: 2 votes, 3.00 average.

How did we live before the internet?

Posted 02-23-2009 at 04:19 AM by bitpicker (Bitpicker's Blog: Random musings and rants)
Updated 02-23-2009 at 04:23 AM by bitpicker

This isn't so much about Linux today as about the internet. Just yesterday I had one of those moments where I wondered how I ever got through life when there was no internet.

Last November I decided to take up learning Russian. I went for the traditional approach first, got myself a couple of books for self-teaching and took off. Only the books wouldn't get me very far, and they did not quite fit my style of learning, which is more geared towards immersion and using a language rather...
Member
Posted in Uncategorized
Views 2980 Comments 0 bitpicker is offline
Old
Rating: 5 votes, 3.00 average.

My Thoughts, so the synapse are not all linked. :)

Posted 03-02-2009 at 03:45 PM by onebuck
Updated 08-13-2014 at 11:12 AM by onebuck (typo)

Hi,

I don't blog that often. To date I have not had a blog! I do read some blogs but the composition along with grammar tends to turn me off. Add in spelling, netspeak or AOL type entries and you will loose me.

I work with the 'Slackware-Links' wiki. More than just Slackware® links! This wiki has been a interesting creation. To date it requires a lot of my time. I do hope it provides useful tools, links and even GNU/Linux to the multiple users.

Those who know...
Moderator
Posted in Uncategorized
Views 5521 Comments 2 onebuck is online now
Old
Rating: 2 votes, 3.00 average.

Uhoh... ethernet card problems again...

Posted 03-30-2009 at 02:41 PM by shannonbay

So it turns out Slack 12.2 didn't really fix the card. However I found a driver (tg3) on Hardware4Linux.info so will try modprobe -vv tg3 next time eth0 disappears. Not sure if I would need to do anything else. If all else fails, perhaps it's a firmware issue as suggested.

Have downloaded the ATI vga module, will set that up later.

I forgot to mention that I figured out how to make lilo boot straight into Slackware - just comment out 'prompt' in lilo.conf and then...
LQ Newbie
Posted in Uncategorized
Views 985 Comments 0 shannonbay is offline

  



All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration