Linux Commands
Linux Commands
com' {} \;
:%s/pattern/replace/
Thus repeating the previous example for the entire text instead of just for a
single line would be:
:%s/lemon/orange/
4.
find . -name *.txt Or find / -name .ssh* -print Or find . -name
hp_mcad* -print
find . -print -exec grep -i pen {} \; | more
find . -grep .tar {} \;
find . -exec grep pld {} \;
find . -exec grep -i "vds admin" {} \;
find /prod/users -type f -size 0 -exec ls {} \;
find . -type f -size +10000 -exec ls -al {} \;
find /data -type d -name ".local_sd_customize"
find . -atime +6 -exec ll | more \;
find . -xdev -name "wagoneer*“ –print
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc –lf
emg-asx-ar-app0001.cert.sabre.com
10. find . size 10M -mtime 14 -name *.log.* -exec du -sh {}\;
16.
Sysop Server:
Sysop Nodes:
Action Servers:
You can put multiple customers too in the same script. Say for eg. If you are
trying to kill action servers of wy and pr. You can run like below.
Unfortunately the validation part, we have to do manually. Please find the steps
below.
1. Open PM + for each customer and check if its accessible.
2. Run the below validation commands on DB and you should see latest time stamp.
--Booking Feed checks run in database:
select max(booking_date) from booking;
select max(last_update_in_cads) from booking;
Please feel free to ask questions whenever you feel required. Also if you have any
suggestions, let me know that too. 😊
Performance Log:
AS_CUR_OWNR
select * from (
select t.*, row_number() over (order by time_of_Action desc) rn
from Action_Log t
)
where rn <= 1000
order by rn;
select * from action_log where TIME_OF_ACTION >= sysdate - 2/24 and SUCCESS_FLAG =
0 order by Time_of_Action desc;
select * from action_log where TIME_OF_ACTION >= sysdate - 8/24 and SUCCESS_FLAG >
0 order by Time_of_Action desc;
find . -type f -newermt '08/14/2019 9:40:00' -exec ls -al {} \;
DB Time Zone:
-------------
SELECT TO_CHAR
FROM DUAL;
+00:00
https://medium.com/@heitorhherzog/compare-sort-and-delete-duplicate-lines-in-
notepad-2d1938ed7009
^(.*?)$\s+?^(?=.*^\1$)
ps -ef|grep -o -P '(?<=asx\.name\=).*?([^\s]+)'|sort
DNS - Check
=============
http://dnsrequest.sabre.com/#Verify
For external use https://www.digwebinterface.com/?
^(.*?)$\s+?^(?=.*^\1$)