Search Results

Search: Posts Made By: jawaugh
862
Posted By jawaugh
Thanks blackrageous. Is it possible to do...
Thanks blackrageous.

Is it possible to do using sed command?

---------- Post updated at 05:22 PM ---------- Previous update was at 05:21 PM ----------

oops, its a typo. It's NSPMHOME.
862
Posted By jawaugh
Need help in replacing a variable in shell scripting
Experts,

Can someone help me with the below?

I've a variable called NSPMHOME=some_value. I would like change the value of the variable with another variable and something followed by it.

E.g...
1,212
Posted By jawaugh
Thanks rdrtx1 for your reply. But it didn't work....
Thanks rdrtx1 for your reply. But it didn't work. The issue is sometimes the number of spaces differs like below.

*<>soft<><><> nofile<> 12000 (or) *<><>soft<>nofile<><><><>12000 (or)...
1,212
Posted By jawaugh
Search for a pattern that is in the middle of the line.
Hello,

How do I use sed to search for a pattern in the middle of a line and delete the whole line.

The command I have is as below.

sed -i '/soft nofile/ d' /etc/security/limits.conf

I...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy