Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi Team,

Im new to perl scripting. I have thousands of file names like below i have pasted.

rm 20130119-154557_9417560919_rubika_CANARARE-all.mp3 rm 20130122-151714_9003230528_desigans_RELINST-all.mp3 rm 20130128-110435_9865934829_gowrih_CLUBNEW-all.mp3 rm 20130119-172714_9994641778_gowrih_CLUBNEW-all.mp3 rm 20130110-150044_9833539373_ezhil_CANARARE-all.mp3 rm 20130131-094051_8754558656_selvakumarir_BAXANEW-all.mp3 rm 20130117-154031_9884040442_karthikae_CLUB-all.mp3 rm 20130110-100956_9952927800_bhagatsinghd_RELINST-all.mp3 rm 20130107-184842_9841118822_karthikae_CLUB-all.mp3 rm 20130102-162259_9789096778_babysheelaa_CLUB-all.mp3 rm 20130123-145333_9841169173_Anandkumarc_RELINST-all.mp3 rm 20130125-161408_9841274078_karthikae_CLUB-all.mp3 rm 20130130-094413_9840454410_prithivrajb_RELINST-all.mp3 rm 20130104-133223_2030578020_karthick_DB748-all.mp3 rm 20130107-145805_9884020568_jesinthamary_REL-INS-all.mp3 rm 20130102-162826_9566118210_dhanasekarank_RELINST-all.mp3

while i run this command from a text file bash -v /path/textfile

it will delete

now i want to write a log file for what are all the files deleted success full...

as of now im running this task daily in bash script ... kindly guide me how to do in perl script step by step

Thanks is advance

In reply to File deletion by 14sudharsan

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-01-28 01:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found