Search Results

Search: Posts Made By: proactiveaditya
4,572
Posted By proactiveaditya
Comparing multiple variables containing numbers
a=1 456
b=4928
c=23
d=456

I want to compare four variables to get the name of the variable having the highest number
3,722
Posted By proactiveaditya
No output
No output
3,722
Posted By proactiveaditya
This works. Now how do i match below: ...
This works.

Now how do i match below:

=(root)ALL
=(root:root)ALL
=(root)NOPASSWD:ALL
=(root:root)NOPASSWD:ALL

=(ALL)ALL
=(ALL:ALL)ALL
=ALL
=NOPASSWD:ALL
3,722
Posted By proactiveaditya
This doesnt give any output, the file content is:...
This doesnt give any output, the file content is:

=(root)NOPASSWD:/usr/bin/vim
=(ALL)NOPASSWD:/usr/bin/vim
=NOPASSWD:/usr/bin/vim
=(user)NOPASSWD:/usr/bin/vim
3,722
Posted By proactiveaditya
fun facts
I want to track only below:


I am using below, but it doesn't work:
4,561
Posted By proactiveaditya
Monitor a file and send mail
I want to monitor the maillog file in real time and send a mail when a certain grep condition is met. Every time the grep condition is met a mail will be sent. I wish to ignore all grep conditions 30...
921
Posted By proactiveaditya
Delete particular lines
I have a file whose contents are something like:

node 'sghjknch16' {
include vmware
include sudo
include sssd
include hardening
include hpom
...
1,250
Posted By proactiveaditya
Find specific lines between two brackets after a word
I have a file whose contents are something like below:

node 'sghjknch16' {
include vmware
include sudo
include sssd
include hardening
include hpom
...
1,517
Posted By proactiveaditya
No it it not at the middle of the file ntp.conf
No it it not at the middle of the file ntp.conf
1,517
Posted By proactiveaditya
Insert three lines after a particular line in ntp.conf
I want to insert three lines after the below three lines in ntp.conf:


server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
<Insert line 1 >
<Insert line 2 >...
1,848
Posted By proactiveaditya
Thanks, but how can i get only the content...
Thanks, but how can i get only the content between the two markers, in the above case the markers also come in the output.
1,848
Posted By proactiveaditya
Find difference in content between two particular lines in two files
I have two files named Before.txt and After.txt:

Now i want to find the difference in content between <Marker 1> and <Marker 2> in the two files.

---------- Post updated at 05:00 PM ----------...
4,240
Posted By proactiveaditya
Also, i want to invoke the script in background...
Also, i want to invoke the script in background on the respective servers and then exit from there and then proceed to the next server on the list, i dont want the script to wait for finishing on one...
4,240
Posted By proactiveaditya
@MadeInGermany -E option is needed as an...
@MadeInGermany

-E option is needed as an argument for this script. Also,since i will be running the script over ssh is the "-x" option needed?

---------- Post updated at 12:21 PM ----------...
4,240
Posted By proactiveaditya
Running script on remote server
Hi All,

I need to run a ksh script on around 200 servers(consisting of AIX,LInux,HP-UX,Solaris). The script is there in the /tmp directory of all the servers. I want want to execute the script in...
2,531
Posted By proactiveaditya
Dont need to escape the "$" This will do: ...
Dont need to escape the "$"

This will do:
echo 'export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk '\''{print $1}'\'')' >> new_file

Thanks anyway :)
2,531
Posted By proactiveaditya
Unable to echo single quotes inside awk
[root@gofu ~]# echo 'export HISTFILE=/var/log/history/history_$(uname -n)_$(date +%Y:%b:%d:%H:%M)_$(who am i | awk '{print \$1}')' >> new_file
[root@gofu ~]#
[root@gofu ~]# cat new_file
export...
Forum: HP-UX 11-10-2012
8,031
Posted By proactiveaditya
I have online JFS. So the process of extending a...
I have online JFS. So the process of extending a normal LVM is same as that of a mirrored LVM?
Forum: HP-UX 11-10-2012
8,031
Posted By proactiveaditya
[Solved] How to extend a mirrored logical volume?
Want to extend the /home filesystem:



Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 262144 260088 2056 99% /home

root@server:./root # vgdisplay vg00
--- Volume groups...
1,831
Posted By proactiveaditya
Both the files cotain just a single column of...
Both the files cotain just a single column of servers
1,831
Posted By proactiveaditya
Find the difference between two server lists
I just want to find the server names that belong to one list but doesnt belong to another. Just the server names in output.
4,019
Posted By proactiveaditya
How can i comment out a section between two particular lines
I want to find out which files under /etc have the the following section:



and then i would like to comment out the above section in all the files.
Please help.
2,221
Posted By proactiveaditya
What about:
What about:
2,221
Posted By proactiveaditya
Scan a file in realtime and execute certain commands on encountering 5 consecutive identical lines
Mysql log has something like below:


I need a bash shell script that will do the following:

1) The script will scan the mysql.log file constantly in real time (something like tail -F...
2,484
Posted By proactiveaditya
1) Extremely sorry for that. 2) How? Can you...
1) Extremely sorry for that.
2) How? Can you help with the basic logic.
Showing results 1 to 25 of 272

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