Skip to content

LinTechOps.com

No shortcuts in life

  • About
  • Linux
    • Ubuntu
  • Scripts
    • Python
    • Bash
  • Devops
    • Git
    • AWS
    • Ansible
    • Docker
  • Windows
  • Technology
  • Panel
    • cPanel
    • Interworx

Bash

Bash Scripts

We need to check the existence of a file in a particular directory. If not found copy the file to that directory.

February 22, 2020February 22, 2020 ArunlalLeave a reply

We consider file name as “ishan.txt” !/bin/bash if [ -e $1/ishan.txt ]; then echo “file is present” else cp -r ishan.txt $1 fi sh script.sh /path to the folder

Bash Scripts

Script for wordpress version with user information

September 12, 2019January 20, 2020 ArunlalLeave a reply

Kindly download the following script and execute the script using the following command. [root@arunlal ~]# wget lintechops.com/wp-version.sh[root@arunlal ~]# sh wp-version.sh Output be like. abxxxcd ‘4.4.18’; abxxxdc ‘4.9.10’; abxxxfg ‘4.0.26’; abxxxtr ‘3.9.27’; acxxxje ‘4.0.26’; apxxxit ‘3.8.5’;

Follow Us on Facebook

.

Copyright © 2025 LinTechOps.com. Theme: Creative Blog by Bishal Napit. Powered by WordPress.