How to remove first two period delimited value in bash?
Data: OpenAI.Standard.code-cushman-fine-tune-002 OpenAI.Standard.gpt-35-turbo OpenAI.Standard.gpt-35-turbo-instruct OpenAI.Standard.gpt-...
-->
Data: OpenAI.Standard.code-cushman-fine-tune-002 OpenAI.Standard.gpt-35-turbo OpenAI.Standard.gpt-35-turbo-instruct OpenAI.Standard.gpt-...
Python script Here is a Python script that reads a list of fully qualified domain names (FQDNs) from a file, looks up their A records usin...
In this example, you will learn to print half pyramids, inverted pyramids, full pyramids, inverted full pyramids and Floyd's triangle ...
To print a grid or matrix using the bash scripting, we need to write loop within a loop. Which can be acheived using the below piece code....
There could be situations wherein you need to create random number or a random file name or a random password. Lets do it through a shell s...
How to redirect stderr to a file Think of a problem where you want to write the logs scheduled command to a file and the Error Generat...
A Bash Script to check the website availability? Create the script. vi my_web_site_status.sh #!/bin/bash #Author: manas.tri@gmail.co...
Script for cacti database Backup Cleanup This small script can be used for multiple thing. I'm using this for our cacti DB backup cl...
#!/bin/bash #manas.tri@gmail.com ls -ld /home/oracle/hk/ofc_data/*.CSV | awk {'print $9'} > /tmp/filename.txt for i in `cat /...
How to Send SCP Logs to the Log File in a bash script 1. Use Following Command to do the Job. scp -vpr SourceFile DestFile |& grep...
sshpass: SSH to servers with inline Password 1. Install sshpass. yum install sshpass 2. use the sshpass like this. sshpass -p '...
Small Bash script to Extract Server Info #!/bin/bash #Manas Tripathy- manas.tri@gmail.com for i in `cat /home/manas/server_list.txt` ...
cd C:\Users\ManasT\Downloads --- Change to Directory ls haanji* -------- list files starting with haanji $datestring = (Get-Date).ToStri...