Computer Science Canada

Bash question

Author:  wtd [ Fri Aug 18, 2006 2:07 pm ]
Post subject:  Bash question

I'm curious as to what use people make of command shells.

Author:  md [ Fri Aug 18, 2006 2:26 pm ]
Post subject: 

I use bash as my shell, and I also use it to do some simple scripting whenever I need to do something simple on the command line that requires way too much work to type out.

Author:  rdrake [ Fri Aug 18, 2006 8:31 pm ]
Post subject: 

I typically prefer using bash... though FreeBSD uses csh (I do believe) as its default shell. Good old sh works well too.

If it counts, I also use the winders PowerShell when I'm left *nixless.

Author:  Null [ Fri Aug 18, 2006 9:46 pm ]
Post subject: 

I just find things are easier in Linux with the shell. I rarely do any Bash scripting.

Author:  Justin_ [ Sat Aug 19, 2006 1:51 am ]
Post subject: 

Since I've only removed windows from my computer last month I haven't done anything majorly fancy with bash yet. The fanciest is probably this:
code:

find -xdev -iname '*.mp3' | xargs -r mv '{}' /path/to/directory/ 


If you can figure out what it does then you can use it to
Smile

Author:  timmytheturtle [ Sat Aug 19, 2006 9:30 am ]
Post subject: 

I use bash quite a bit, I do some scripting, I've written a few simple scripts do automate proccesses like backing up, or pinging a network to find a machine.

Author:  OneOffDriveByPoster [ Sat Aug 19, 2006 8:38 pm ]
Post subject: 

Justin_ wrote:
Since I've only removed windows from my computer last month I haven't done anything majorly fancy with bash yet. The fanciest is probably this:
code:

find -xdev -iname '*.mp3' | xargs -r mv '{}' /path/to/directory/ 


If you can figure out what it does then you can use it to
:)


Don't know if it actually works the same, but:
code:

find -xdev -iname '*.mp3' -exec mv '{}' /path/to/directory ';'

Author:  rizzix [ Tue Aug 22, 2006 5:14 pm ]
Post subject: 

I use zsh. It's a perfect interactive shell and it has some cool features that use useful in non-interactive scripting. Smile

zsh is pretty good for interactive scripting as well.


: