Open avicennabuzzbomb opened 6 years ago
the solution I have is: sed s/\(\"\)\([0-9]\)[,]\([0-9]\)/\(\)\([0-9]\)\([0-9]\)/g exercise-file1.txt > editedFile1.txt
sed s/\(\"\)\([0-9]\)[,]\([0-9]\)/\(\)\([0-9]\)\([0-9]\)/g exercise-file1.txt > editedFile1.txt
to check commas: sed s/[,]\([0-9]\)[,]\([0-9]\)/[,]\([0-9]\)[,]\([0-9]\)/g editedFile1.txt > editedFile2.txt
sed s/[,]\([0-9]\)[,]\([0-9]\)/[,]\([0-9]\)[,]\([0-9]\)/g editedFile1.txt > editedFile2.txt
@cecileane and @coraallencoleman.
the solution I have is:
sed s/\(\"\)\([0-9]\)[,]\([0-9]\)/\(\)\([0-9]\)\([0-9]\)/g exercise-file1.txt > editedFile1.txt
to check commas:
sed s/[,]\([0-9]\)[,]\([0-9]\)/[,]\([0-9]\)[,]\([0-9]\)/g editedFile1.txt > editedFile2.txt