Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
C++/bash Question
Results 1 to 3 of 3

Thread: C++/bash Question

  1. #1
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    C++/bash Question

    Greets all!

    My coding skill suck anus these days, and to top it off I cant find my beloved C++ book >

    My question is as follows :

    I have a program for my Diamond Rio 800 that doesnt like my long filenames with spaces. First I figured it may be easier for my crappy bash script I slapped together to just replace spaces with underscores.

    After scaring the hell out of my self (having a thought .. its rare in my parts), I was curious if this is a real problem or just inherent to bash or even just that one program (rioutil)?

    Anyone have any input?

  2. #2

    Re:C++/bash Question

    Code:
    % ruby -e 'Dir.foreach(".") { |file| File.rename(file, file.tr(" ", "_")) }'

  3. #3
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:C++/bash Question

    hehe thanks

    As stated my coding skills have not regained the strength they were 6 years ago ...

    That will teach me to stop programming :'(

Similar Threads

  1. bash question
    By shagnthings in forum Linux - General Topics
    Replies: 4
    Last Post: 02-13-2004, 02:44 AM
  2. bash scripting question
    By seanmclemon in forum Programming
    Replies: 7
    Last Post: 09-07-2003, 12:58 AM
  3. Bash scripting question
    By kenshi in forum Programming
    Replies: 6
    Last Post: 01-02-2003, 08:36 PM
  4. bash question
    By in forum Linux - Software, Applications & Programming
    Replies: 14
    Last Post: 08-30-2002, 03:24 AM
  5. Bash Script question....
    By gfunkmonk in forum Programming
    Replies: 6
    Last Post: 08-26-2002, 09:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •