Search Results

Search: Posts Made By: poweroflinux
1,602
Posted By Chubler_XL
Using awk - removes trailing spaces and "]"...
Using awk - removes trailing spaces and "]" chars:

awk -F, '{ for(i=1;i<=NF;i++) {
gsub("^[^:]*:", x, $i);
gsub("[ \\]]*$", x, $i); }} 1' OFS=, infile
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 09:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy