Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash change text in specific column

# Basic syntax:
awk '{ gsub("search_text", "replacement_text", $column) }1' input_file
# Where:
#	- search_text is the text you want to replace
#	- replacement_text is the text that will replace the search_text
#	- column is the column for which you want to make the substitutions
Source by www.unix.com #
 
PREVIOUS NEXT
Tagged: #bash #change #text #specific #column
ADD COMMENT
Topic
Name
7+3 =