Search Results

Search: Posts Made By: Scrutinizer
2,522
Posted By Scrutinizer
With sed, try: sed...
With sed, try:
sed 's/[^:]*:[^:]*:\([^,]*,[^,]*\)/\1 /g; s/ [^ ]*$//' file

--
Alternatively with awk:
awk '{for(i=1; i<=NF; i++) {sub(/.*:/,x,$i); sub(/,[^,]*$/,x,$i)}}1' file
or
awk...
Showing results 1 to 1 of 1

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