Shell Bash Scripting: Assignment & Excercise – 17
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…
Read more »Script to find out biggest number from given three nos
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…
Read more »Write script to print nos as 5,4,3,2,1 using while loop
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…
Read more »Write Script, using case statement to perform basic math operation as
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 –…
Read more »Write Script to see current date, time, username, and current directory
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…
Read more »Write Script to see current date, time, username, and current directory
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:…
Read more »Write script to print given number in reverse order
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…
Read more »Write script to print given numbers sum of all digit,
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…
Read more »List of Example Shell script can be found
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…
Read more »Find and display files last modified les than 90 days ago
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 “*”…
Read more »Shell script to read file line by line
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…
Read more »Files modified on a certain date
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…
Read more »Shell script to Print only Size and file name using unix command.
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…
Read more »Linux Tutorials: expect commands examples
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…
Read more »Verifying that the Secure Shell Daemon is running
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…
Read more »How to find success/failure status of a command in different shells?
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 $?…
Read more »VIM custom settings.
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…
Read more »Finding the MAC Address of Remote Computer using ARP and GETMAC comman
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…
Read more »sshpass error while compilation
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:…
Read more »String manipulation exercise
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…
Read more »Linux Tutorials: Find Command Examples and Use scnario
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…
Read more »Change Host name in RHEL
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 @…
Read more »OpenSSL Command-Line HOWTO
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 »Vi command to copy paragraph
rajeshkumar created the topic: vi command to copy paragraph vi command to copy paragraph “ty} copy text from cursor to end of paragraph into buffer “t” Regards, Rajesh Kumar Twitt…
Read more »Write script to print given number in reverse order, for eg. If no is
scmjobs created the topic: Write script to print given number in reverse order, for eg. If no is Write script to print given number in reverse order, for eg. If…
Read more »ShellScript to monitor available disk space on AIX
tpatil created the topic: ShellScript to monitor available disk space on AIX #!/bin/ksh # This script monitors available disk space. # This script emails an alert when a locally mounted…
Read more »Linux Tutorials: ftp commands examples
rajeshkumar created the topic: FTP commands for Linux / Unix How to Login – ftp rajesh-servers Basic Commands help or ? Displays a list of all FTP commands. quit Quits…
Read more »Df command usage
rajeshkumar created the topic: df command usage Filesystems using more than 90% capacity df -hP | awk ‘{x=$5;sub (“%”,””,x)}x>75’ df -h | awk ‘{if(NF==1){x=$0;getline;if(int($4)>90)print x,$0}else if(int($5)>90) print}’ ssh -q rajesh…
Read more »Frequently Used Shell Script
rajeshkumar created the topic: Frequently Used Shell Script Shell scripts to convert file names to lower case and upper case To convert to lower case: #!/bin/sh for i in *…
Read more »