Skip to content

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
  • Shell Script

    Find out biggest number from given three nos

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmjobs created the topic: Find out biggest number from given three nos Write Script to find out biggest number from given three nos. Nos are supplies as command line argument. Print error if sufficient arguments are not supplied.

    Read More Find out biggest number from given three nosContinue

  • Shell Script

    Write Script, using case statement to perform basic math operation

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmjobs created the topic: Write Script, using case statement to perform basic math operation Write Script, using case statement to perform basic math operation as follows + addition – subtraction x multiplication / division The name of script must be ‘q4’ which works as follows $ ./q4 20 / 3, Also check for sufficient command…

    Read More Write Script, using case statement to perform basic math operationContinue

  • Shell Script

    Linux Tutorials: execute command from linux to windows machine using rsh

    ByRajesh Kumar December 8, 2017April 24, 2022

    scmuser created the topic: Execute Command from Linux to Windows machine Hi, Could you please help me in my following scenario… Problem Statement: In one windows machine, I have one application (BusinessObject) file which has to perform some kind of import jobs upon getting parameters on command line. The command to execute this import statement…

    Read More Linux Tutorials: execute command from linux to windows machine using rshContinue

  • Shell Script

    Linux Tutorials: find commands examples

    ByRajesh Kumar December 8, 2017April 24, 2022

    rajeshkumar replied the topic: Re: Find files with the Linux find command This next example is similar, but here I use the -i argument to the grep command, telling it to ignore the case of the characters string, so it will find files that contain string, String, STRING, etc.: find . -type f -name “*.java”…

    Read More Linux Tutorials: find commands examplesContinue

  • Shell Script

    Run php script using cronjob / crontab

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: Run php script using cronjob / crontab How can i Run php script using cronjob / crontab??? Any ideA? rajeshkumar replied the topic: Re: Run php script using cronjob / crontab If your PHP scripts do have executable permissions like 755 or -rwxr-xr-x and they have one of the PHP filename…

    Read More Run php script using cronjob / crontabContinue

  • Shell Script

    Crontab condition, if a file size is more than 5000K than send an email

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: crontab condition, if a file size is more than 5000K than send an email find /var/www/vhosts/domain/folder/ -name ‘*.flv’ -size +5000k | grep flv && /bin/mail -s “The file is available!” “my@address.com” > /dev/null If grep detects a line containing the string flv in the output of find it returns 0, otherwise…

    Read More Crontab condition, if a file size is more than 5000K than send an emailContinue

  • Shell Script

    Shell Bash Scripting: Assignment & Excercise – 17

    ByRajesh Kumar December 8, 2017December 23, 2022

    rajeshkumar created the topic: Shell script that will add two nos How to write shell script that will add two nos, which are supplied as command line argument, and if this two nos are not given show error and its usage #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek…

    Read More Shell Bash Scripting: Assignment & Excercise – 17Continue

  • Shell Script

    Script to find out biggest number from given three nos

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Script to find out biggest number from given three nos Write Script to find out biggest number from given three nos. Nos are supplies as command line argument. Print error if sufficient arguments are not supplied. #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek G….

    Read More Script to find out biggest number from given three nosContinue

  • Shell Script

    Write script to print nos as 5,4,3,2,1 using while loop

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Write script to print nos as 5,4,3,2,1 using while loop Write script to print nos as 5,4,3,2,1 using while loop. #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek G. Gite # # Latest version can be found at http://www.nixcraft.com/ # # Q3 # Algo: #…

    Read More Write script to print nos as 5,4,3,2,1 using while loopContinue

  • Shell Script

    Write Script, using case statement to perform basic math operation as

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Write Script, using case statement to perform basic math operation as Write Script, using case statement to perform basic math operation as follows + addition – subtraction x multiplication / division The name of script must be ‘q4’ which works as follows $ ./q4 20 / 3, Also check for sufficient…

    Read More Write Script, using case statement to perform basic math operation asContinue

  • Shell Script

    Write Script to see current date, time, username, and current directory

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Write Script to see current date, time, username, and current directory Write Script to see current date, time, username, and current directory #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by Vivek G. Gite # # Latest version can be found at http://www.nixcraft.com/ # # Q5 #…

    Read More Write Script to see current date, time, username, and current directoryContinue

  • Shell Script

    Write Script to see current date, time, username, and current directory

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmjobs created the topic: Write Script to see current date, time, username, and current directory Write Script to see current date, time, username, and current directory??? rajeshkumar replied the topic: Re: Write Script to see current date, time, username, and current directory #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # # Written by…

    Read More Write Script to see current date, time, username, and current directoryContinue

  • Shell Script

    Write script to print given number in reverse order

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Write script to print given number in reverse order Write script to print given number in reverse order, for eg. If no is 123 it must print as 321. #!/bin/bash # # Linux Shell Scripting Tutorial 1.05r3, Summer-2002 # Script to reverse given no # # Algo: # 1) Input number…

    Read More Write script to print given number in reverse orderContinue

  • Shell Script

    Write script to print given numbers sum of all digit,

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Write script to print given numbers sum of all digit, Write script to print given numbers sum of all digit, For eg. If no is 123 it’s sum of all digit will be 1+2+3 = 6. #!/bin/bash # # # Algo: # 1) Input number n # 2) Set sum=0, sd=0…

    Read More Write script to print given numbers sum of all digit,Continue

  • Shell Script

    List of Example Shell script can be found

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: List of Example Shell script can be found www.it.uom.gr/teaching/linux/lsst/scripts/q7 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn rajeshkumar replied the topic: Re: List of Example Shell script can be found One more… htaccess.wordpress.com/2007/12/08/unix-shell-script-examples/ Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More List of Example Shell script can be foundContinue

  • Shell Script

    Find and display files last modified les than 90 days ago

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Find and display files last modified les than 90 days ago Find and display files last modified les than 90 days ago. find . -name “*” -mtime -3 -print find everything in your home that has been modified more recently than “abc.txt”: find $HOME -newer ~joeuser/lastbatch.txt Regards, Rajesh Kumar Twitt me…

    Read More Find and display files last modified les than 90 days agoContinue

  • Shell Script

    Shell script to read file line by line

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Shell script to read file line by line processLine(){ line=”$@” # get all args # just echo them, but you may need to customize it according to your need # for example, F1 will store first field of $line, see readline2 script # for more examples # F1=$(echo $line | awk…

    Read More Shell script to read file line by lineContinue

  • Shell Script

    Files modified on a certain date

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: files modified on a certain date To find all files modified on a certain date, for example, ‘2007-06-07’ the final input is: find . -type f -newermt 2011-04-20 ! -newermt 2011-04-21

    Read More Files modified on a certain dateContinue

  • Shell Script

    Shell script to Print only Size and file name using unix command.

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Shell script to Print only Size and file name using unix command. Shell script to Print only Size and file name using unix command. ls -l | tr -s ” ” ” “| cut -d ” ” -f5,9 Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn puneetbhatia77 replied the topic: Re: Shell…

    Read More Shell script to Print only Size and file name using unix command.Continue

  • Shell Script

    How to change the permission of multiple files which has 655 to 755

    ByRajesh Kumar December 8, 2017January 9, 2020

    pavani created the topic: how to change the permission of multiple files which has 655 to 755 Hi How to change the permission of files which has different permission but i need to change only those files which has permission 655 to 755 rajeshkumar replied the topic: Re: how to change the permission of multiple…

    Read More How to change the permission of multiple files which has 655 to 755Continue

  • Shell Script

    Linux Tutorials: expect commands examples

    ByRajesh Kumar December 8, 2017April 24, 2022

    scmuser created the topic: expect command in unix /linux? Hello, I am doing a project which asks me to enter password 4 times in a row. I need to enter the same password 4 times. My target is to enter password once and apply it 4 times. My friend told me to use “expect” command….

    Read More Linux Tutorials: expect commands examplesContinue

  • Shell Script

    Verifying that the Secure Shell Daemon is running

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Verifying that the Secure Shell Daemon is running To verify that the Secure Shell Daemon (sshd) is running you need to log in as root to the ESX Server host. Use iLO, Drac, or another management tool to log in directly to the console. Log in to the console as root….

    Read More Verifying that the Secure Shell Daemon is runningContinue

  • Shell Script

    How to find success/failure status of a command in different shells?

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: How to find success/failure status of a command in different shells? Ksh/Borne/Bash shell $ ls /usr/bin …. # when success value is 0 $ echo $? 0 $ ls /usr/bin/blah ls: 0653-341 The file /usr/bin/blah does not exist # when failure non-zero status $ echo $? 1 c/Tcsh $ ls /usr/bin…

    Read More How to find success/failure status of a command in different shells?Continue

  • Shell Script

    VIM custom settings.

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: VIM custom settings. Hi, I was required to set my tab to 4 space. I got some inputs and based on google search i found good reference which can used to customize your VIM editor. Please create one .vimrc file and save in your home directory. .vimrc file will contain following…

    Read More VIM custom settings.Continue

  • Shell Script

    Finding the MAC Address of Remote Computer using ARP and GETMAC comman

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Finding the MAC Address of Remote Computer using ARP and GETMAC comman 1. Single subnet network ping arp -a it displays remote ip address and mac address of ur neighbour router address. 2.Using getmac getmac /s 10.40.202.17 getmac /s computername Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Finding the MAC Address of Remote Computer using ARP and GETMAC commanContinue

  • Shell Script

    sshpass error while compilation

    ByRajesh Kumar December 8, 2017January 9, 2020

    scmuser created the topic: sshpass error while compilation I am getting following error while compilation…any clue???? sshpass-1.05-1.el6.x86_64.rpm warning: sshpass-1.05-1.el6.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895 error: Failed dependencies: rpmlib(FileDigests)

    Read More sshpass error while compilationContinue

  • Shell Script

    String manipulation exercise

    ByRajesh Kumar December 8, 2017January 9, 2020

    mnanjala created the topic: String manipulation exercise Hi Guys, Say there is a text file inject.dat, it has 5 entries as below PKGNAME=Project-debug OLD_VERSION=1.0.0 NEW_VERSION=1.0.1 PRODUCT NUMBER=1 RELASE DATE=11/11/2011 How we could write shell script so I can read each line replace everything after “=”sign, with new value, example run ./inject.sh $PKGNAME $OLD_VERSION $NEW_VERSION $PRODUCT_NUMBER…

    Read More String manipulation exerciseContinue

  • Shell Script

    Linux Tutorials: Find Command Examples and Use scnario

    ByRajesh Kumar December 8, 2017April 24, 2022

    rajeshkumar created the topic: Find Linux Command Collection Find files modified in the last 48 hours, and in current folder and one level below I believe the correct command is `find -maxdepth 2 -type f -mtime -2 • maxdepth: will tell find to only search in the current folder • type: will tell find to…

    Read More Linux Tutorials: Find Command Examples and Use scnarioContinue

  • Shell Script

    Change Host name in RHEL

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: Change Host name in RHEL Change Host name in RHEL Changes should be made in the following files. /etc/hosts /etc/sysconfig/network Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Change Host name in RHELContinue

  • Shell Script

    OpenSSL Command-Line HOWTO

    ByRajesh Kumar December 8, 2017January 9, 2020

    rajeshkumar created the topic: OpenSSL Command-Line HOWTO I found very good url for OpenSSL Command-Line HOWTO. www.madboa.com/geek/openssl/#intro-commands Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More OpenSSL Command-Line HOWTOContinue

Page navigation

Previous PagePrevious 1 … 352 353 354 355 356 … 388 Next PageNext

© 2026 - WordPress Theme by Kadence WP

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
Search