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
Regex with SED command
I have a unique problem. Or at least I've found it to be unique based on my searches.
I am trying to bulk rename files in bash using sed initially to match a file name string, then use that string to ...

John Doe
Votes: 0
Answers: 1
sed command for inserting text inside single quote
Suppose there's a text file with the following line:
export MYSQL_ADMIN=''
I want to insert text inside that single quote using the sed command, so that it changes to something like this for example:...
Debdas
Votes: 0
Answers: 2
How to use sed command in python subprocess?
I searched for other answers before asking this doubt. Iam running on a windows 11 machine. The csv file I got has a " in between some lines which is cause an error when importing to mongodb. So ...
CyberNoob
Votes: 0
Answers: 3