The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-02-2009
pritish.sas pritish.sas is offline
Registered User
  
 

Join Date: Dec 2008
Location: Mumbai
Posts: 44
replace space with comma in perl

arr_Ent_NameId variable holds 'Prakash pawar' 'sag' '23' '50000' this value
Code:
'Prakash pawar' 'sag' '23' '50000'
I want to replace space( ) with comma (,)

There are 4 fields here. I don't want to replace first field with comma.

output should be:
Code:
'Prakash,pawar','sag','23','50000'
Thanks
Pritish

---------- Post updated at 07:28 PM ---------- Previous update was at 07:16 PM ----------

Would you pls help me out.

Last edited by Yogesh Sawant; 07-05-2009 at 10:53 AM.. Reason: added code tags