Search Results

Search: Posts Made By: MadeInGermany
4,391
Posted By MadeInGermany
awk with an array: awk 'BEGIN...
awk with an array:
awk 'BEGIN {A["linux"]="Unix"; A["unix"]="Linux"} {for (i=1; i<=NF; i++) if ((xi=tolower($i)) in A) $i=A[xi]} {print}' file.txt
Trying to retain the case of the first character,...
Showing results 1 to 1 of 1

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