python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to add one space character (without changing any other characters) to "one character strings" using awk, sed, or grep?
I obtained this text file using sed and awk (leap.log):
Template_frcmod
MASS
Pd 0.000 0.000
BOND
Pd-c
Pd-3e
c-Pd
4p-ca
o-3e
n-3e
Pd-4e
3p-ca
o-4e
n-4e
ANGLE
Pd-c-Pd
Pd-3e-o
Pd-3e-n
Pd-1c-P...
BARIS KURT
Votes: 0
Answers: 2
Writing a bash script to merge multiple .csv files into one and keeping the same header
I am trying to write a script to merge multiple .csv files(could be an empty file as well) into one .csv file.
One way I found was using cat.
cat *.csv > outputFile.csv
This is working just fine. ...
tsunade
Votes: 0
Answers: 1
Bash, mass data change on data from a column but only specific lines
I have a data file that I need to do a mass date change on specific lines or column. It is only on specific lines that end in 0003-0. There are many others similar and I do not need them changed. I am...
Brett Burton
Votes: 0
Answers: 2
Sed from fish to bash
I have a providers.tf containing content like:
provider "aws" {
region = "${var.region}"
assume_role {
role_arn = "${var.role_arn}"
}
}
I need to replace the ...
Mornor
Votes: 0
Answers: 2