My Shell Script Usage Collection

sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find . -type f | wc –l Count Specific extention files…

Read more »

Shell script to run x times

rajeshkumar created the topic: shell script to run x times Problem: First i need to cd to this directory $SWDIR/util Second i need to run the following either 4 times…

Read more »

Whats the difference between running a shell scrip

scmuser created the topic: Whats the difference between running a shell scrip Whats the difference between running a shell script as ./script.sh and sh script.sh have a script that looks…

Read more »

Shell script merge two list and remove duplicates

rajeshkumar created the topic: shell script merge two list and remove duplicates You want all the records from list_A supplemented by all the records from list_B for which there is…

Read more »

Shell script for recursive delete required.

rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d “$1” ] then echo “Usage $0 dirname” exit 1 fi find…

Read more »

Shell Script to delete a folder that is more then

scmuser created the topic: Shell Script to delete a folder that is more then Shell Script to delete a folder that is more then 1 week old Hi all, i…

Read more »

Shell Script Run in Background

rajeshkumar created the topic: shell script run in background I wanted to run a particular shell program in a background and it should not be dependent on terminal session of…

Read more »

How to Restore The Dump File using Shell Scripting

scmuser created the topic: how to restore the dump file using shell scripting I have created a script file to dump the application files using the following script Code =============…

Read more »

Shell Script to Find All New Files Added

scmuser created the topic: shell script to find all new files added Hi, i am looking for a shell script to find all new files added or modified after a…

Read more »

Shell Script Program 1

scmuser created the topic: shell script program 1 Device a script that takes a filename as argument ( which must exist in the current directory) and locates from your home…

Read more »

Shell script program 2

scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include error – checking…

Read more »

Test your Shell Scripting Skills: – Program 4

scmuser created the topic: Test your Shell Scripting Skills: – Program 4 Expand the scope of the script in 16.12 (Test Your Understanding) to perform search recursively.

Read more »

Test your Shell Scripting Skills: – Program 7

scmuser created the topic: Test your Shell Scripting Skills: – Program 7 You are moving files to handled which accepts only 8+3 type filesname. Produce a list of those files…

Read more »

Test your Shell Scripting Skills: – Program 8

scmuser created the topic: Test your Shell Scripting Skills: – Program 8 Write a script that displays a special listing showing the (i) permission (ii) size (iii) filename (iv) last…

Read more »

Test your Shell Scripting Skills: – Program 9

scmuser created the topic: Test your Shell Scripting Skills: – Program 9 Find out the pathname of the Korn shell on your machine and then change the interpreter line in…

Read more »

Test your Shell Scripting Skills: – Program 10

scmuser created the topic: Test your Shell Scripting Skills: – Program 10 Add the statement #inlclude at the beginning of every C source file in the current directory containing printf…

Read more »

Test your Shell Scripting Skills: – Program 11

scmuser created the topic: Test your Shell Scripting Skills: – Program 11 Write a script that compares two direcotries bar1 and bar2 (supplied as arguments) and copies or overwrites to…

Read more »

Test your Shell Scripting Skills: – Program 12

scmuser created the topic: Test your Shell Scripting Skills: – Program 12 You have a number of C programs that certain comment lines at the beginning of each program. The…

Read more »

Test your Shell Scripting Skills: – Program 13

scmuser created the topic: Test your Shell Scripting Skills: – Program 13 Write a shell script that uses find to look for a file and echo a suitable message if…

Read more »

Test your Shell Scripting Skills: – Program 14

scmuser created the topic: Test your Shell Scripting Skills: – Program 14 Devise a script that allows a user to view, add, delete or modify a setting in a configuration…

Read more »

Test your Shell Scripting Skills: – Program 15

scmuser created the topic: Test your Shell Scripting Skills: – Program 15 Devise a script that creates a lock file which prevents more than one user from running it. The…

Read more »

Test your Shell Scripting Skills: – Program 16

scmuser created the topic: Test your Shell Scripting Skills: – Program 16 Assume that you have a number of files, downloaded from the internet, in the /home/kumar/download directory. The table…

Read more »

Test your Shell Scripting Skills: – Program 3

scmuser created the topic: Test your Shell Scripting Skills: – Program 3 Write a script that lists files by modification time when called with lm and by access time when…

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 »

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 »

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-shell-scripting-guide-and-tutorial

Complete Linux & Shell Scripting Guide and Tutorial for Linux Admin and DevOps Engineer

Linux User Commands Linux Commands for User Linux Commands reference in scmGalaxy forum Linux Admin Commands Linux Commands for Administrator Main Responsibilities of the Linux System Administrator 20 pmap Commands…

Read more »
shell-bash-scripting-training

Shell Scripting (Bash) Training | Bash/Shell Scripting Course

Introduction Introduction Why Shell Scripting? Linux Internal What to Expect From This Course? Prerequisites Git fundamental Introduction of git Git setup Basic operations in git Github Summary A First Look…

Read more »
shell-script-parameters

Understand Shell Script Parameters – Reference

A parameter is an entity that stores values. It can be a name, a number or some special characters. Bash shell provides two kind of parameters. Positional Parameter and Special…

Read more »
read-xml-file-using-shell-script

How to read XML file by using shell script ?

This was like the first time where I had to write something that will be able to read something out of a XML file using a shell script. Usually I…

Read more »