Tuhin Paul
  • Member for 2 years, 2 months
  • Last seen more than a week ago
The "proper" way to test if a service is running in a script
3 votes

There are many answers using systemctl. You have other options as well (where $? comes handy): Using pidof command: suppose I am trying to find if redis-server is running. First issue pidof redis-...

View answer
How to find if line or text have specific word from wordlist?
0 votes

grep with -F option should work. The image shows a simple example with multiple keywords to match (separated by newline)'. The example is taking input from the console. Using the image below for ...

View answer
Variable expansion not working inside Sed search and replace
0 votes

It actually works: tuhin@tuhin-virtualvbox:temp$ cat input.txt gene_id "STRG.50"; gene_id "STRG.52"; gene_id "STRG.59"; tuhin@tuhin-virtualvbox:temp$ cat template STRG.50 AT1G27500 STRG.52 ...

View answer