Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Bash question
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

How have you used bash (or any other shell)?
(No ending time set)
In the terminal
28%
 28%  [ 4 ]
In scripts
0%
 0%  [ 0 ]
Both of the above
71%
 71%  [ 10 ]
Total Votes : 14

Author Message
wtd




PostPosted: Fri Aug 18, 2006 2:07 pm   Post subject: Bash question

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




PostPosted: Fri Aug 18, 2006 2:26 pm   Post subject: (No 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.
rdrake




PostPosted: Fri Aug 18, 2006 8:31 pm   Post subject: (No 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.
Null




PostPosted: Fri Aug 18, 2006 9:46 pm   Post subject: (No subject)

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




PostPosted: Sat Aug 19, 2006 1:51 am   Post subject: (No 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
timmytheturtle




PostPosted: Sat Aug 19, 2006 9:30 am   Post subject: (No 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.
OneOffDriveByPoster




PostPosted: Sat Aug 19, 2006 8:38 pm   Post subject: (No 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 ';'
rizzix




PostPosted: Tue Aug 22, 2006 5:14 pm   Post subject: (No 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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: