
-----------------------------------
wtd
Fri Aug 18, 2006 2:07 pm

Bash question
-----------------------------------
I'm curious as to what use people make of command shells.

-----------------------------------
md
Fri Aug 18, 2006 2:26 pm


-----------------------------------
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.

-----------------------------------
rdrake
Fri Aug 18, 2006 8:31 pm


-----------------------------------
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.

-----------------------------------
Null
Fri Aug 18, 2006 9:46 pm


-----------------------------------
I just find things are easier in Linux with the shell. I rarely do any Bash scripting.

-----------------------------------
Justin_
Sat Aug 19, 2006 1:51 am


-----------------------------------
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: 

find -xdev -iname '*.mp3' | xargs -r mv '{}' /path/to/directory/  


If you can figure out what it does then you can use it to 
 :)

-----------------------------------
timmytheturtle
Sat Aug 19, 2006 9:30 am


-----------------------------------
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.

-----------------------------------
OneOffDriveByPoster
Sat Aug 19, 2006 8:38 pm


-----------------------------------
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: 

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:

find -xdev -iname '*.mp3' -exec mv '{}' /path/to/directory ';'


-----------------------------------
rizzix
Tue Aug 22, 2006 5:14 pm


-----------------------------------
I use zsh. It's a perfect interactive shell and it has some cool features that use useful in non-interactive scripting. :)

zsh is pretty good for interactive scripting as well.
