python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can i modify a remote file over ssh with sed?
i am trying to add a line to the top of a JS file on a remote server
the command i want to run is:
sed -i "1i\const test = require(\'../../../test/test.json\');" /opt/test.js
so i have trie...
admin admin
Votes: 0
Answers: 1
executing a Unix utility from Python
I have a Unix utility, which is called hex2bin which gets a hex file and generates a bin file. I have a python code that generates the hex file and I want my python code after generating the hex file ...

TJ1
Votes: 0
Answers: 1
Cannot open file when pass $1, but can open file when pass the file name
This might be a naive question, but I am new to bash scripting. I am trying to open a file and count the number of lines in that file and if it is greater than 4, then output something. I have figured...
learningtoprogram123
Votes: 0
Answers: 1
awk/bash append headers in many csv files
I would like to transform the header of many csv files automatically using awk and bash scripts.
Currently, I am using the following code-block, which is working fine:
for FILE in *.csv;
do
awk 'FNR...
doraemon
Votes: 0
Answers: 4