Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
Replace the second string in the double quotes with the first string in the double quotes
D Morris
Programming language:
Shell/Bash
2021-06-29 23:15:23
0
Q:
Replace the second string in the double quotes with the first string in the double quotes
muznah
Code:
Shell/Bash
2021-02-22 22:08:49
awk -v FS="," -v OFS="," '{$2=$1;print $0}' input.text
0
Tags
string
replace
first
Related
replace delimiter for new line
replace delimiter for enter command
replace char for new line
sed replace from match to end of line
New to Communities?
Join the community