<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shell Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/shell/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Understanding cmd: The Command Line Interface of Windows</title>
		<link>https://www.scmgalaxy.com/tutorials/understanding-cmd-the-command-line-interface-of-windows/</link>
					<comments>https://www.scmgalaxy.com/tutorials/understanding-cmd-the-command-line-interface-of-windows/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Thu, 12 Jun 2025 12:39:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[CommandLine]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12699</guid>

					<description><![CDATA[<p>Introduction The Command Prompt, often referred to as cmd, is a powerful, text-based interface for interacting with the operating system. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-cmd-the-command-line-interface-of-windows/">Understanding cmd: The Command Line Interface of Windows</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="930" height="485" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-72.png" alt="" class="wp-image-12708" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-72.png 930w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-72-300x156.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-72-768x401.png 768w" sizes="(max-width: 930px) 100vw, 930px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Introduction</h3>



<p class="wp-block-paragraph">The Command Prompt, often referred to as <code>cmd</code>, is a powerful, text-based interface for interacting with the operating system. While modern computing tends to rely heavily on graphical user interfaces (GUIs), the command-line interface (CLI) remains an essential tool, especially for system administrators, developers, and advanced users who need greater control over their operating systems.</p>



<p class="wp-block-paragraph">In Windows, the Command Prompt provides an efficient way to manage system resources, troubleshoot issues, and automate tasks. Despite the rise of more advanced terminal tools and shells, such as PowerShell or Linux-based terminal emulators, the classic <code>cmd</code> remains one of the most important and versatile tools for many users.</p>



<p class="wp-block-paragraph">This comprehensive guide will walk you through the <code>cmd</code> utility, discussing its key functions, major use cases, architectural components, and how to work with it effectively. We&#8217;ll also provide a step-by-step guide to getting started with <code>cmd</code>, offering examples and practical tips along the way.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">What is CMD?</h3>



<p class="wp-block-paragraph">The <strong>Command Prompt</strong>, often known as <code>cmd</code> or <code>cmd.exe</code>, is the command-line interface built into Microsoft Windows. It allows users to interact with the operating system by typing commands rather than using the standard graphical user interface (GUI). Although many commands that users execute in <code>cmd</code> can be done through the GUI, using the command-line interface provides a more flexible and efficient way to perform complex tasks and automate repetitive operations.</p>



<p class="wp-block-paragraph">The <code>cmd</code> utility works by executing a series of commands typed by the user, interpreting those commands, and returning output. These commands could involve anything from file system navigation and program execution to system management and configuration.</p>



<p class="wp-block-paragraph">In Windows, <code>cmd</code> serves as the default command-line interpreter, and it is often used in conjunction with <strong>batch files</strong> (<code>.bat</code> or <code>.cmd</code> files), which allow users to automate multiple tasks by running a script of commands in sequence.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Key Features of CMD</h3>



<p class="wp-block-paragraph">Here are some key features that make CMD a vital tool for various users:</p>



<h4 class="wp-block-heading">1. <strong>File System Management</strong></h4>



<p class="wp-block-paragraph">CMD allows for comprehensive file and directory management through a series of commands that can be used to navigate the file system, create and delete files, move or copy files, and modify file attributes.</p>



<h4 class="wp-block-heading">2. <strong>Batch Scripting and Automation</strong></h4>



<p class="wp-block-paragraph">With CMD, users can create batch scripts to automate repetitive tasks. Batch scripts contain a series of commands that are executed in sequence. This automation capability is widely used for system configuration, backups, and other maintenance tasks.</p>



<h4 class="wp-block-heading">3. <strong>System Configuration</strong></h4>



<p class="wp-block-paragraph">Through <code>cmd</code>, users can access a wide range of system settings and modify environment variables, control user accounts, and execute system-level tasks like managing network connections and services.</p>



<h4 class="wp-block-heading">4. <strong>Diagnostic and Troubleshooting Tools</strong></h4>



<p class="wp-block-paragraph">CMD is heavily used for diagnostic tasks. Commands like <code>ping</code>, <code>tracert</code>, <code>ipconfig</code>, and <code>chkdsk</code> are frequently used by system administrators to troubleshoot network issues, check disk integrity, and gather system information.</p>



<h4 class="wp-block-heading">5. <strong>Network Configuration</strong></h4>



<p class="wp-block-paragraph">CMD provides a variety of tools for managing and configuring network settings. It can be used to view IP addresses, configure network interfaces, and test connectivity between devices on a network.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Major Use Cases of CMD</h3>



<p class="wp-block-paragraph">The Command Prompt (<code>cmd</code>) has a wide range of uses, from file management to network diagnostics and automation. Below are the major use cases of <code>cmd</code> in both everyday computing and professional IT environments:</p>



<h4 class="wp-block-heading">1. <strong>File and Directory Management</strong></h4>



<p class="wp-block-paragraph">CMD allows users to perform tasks such as:</p>



<ul class="wp-block-list">
<li><strong>Navigating Directories</strong>: Using <code>cd</code> (change directory) to move between directories.</li>



<li><strong>Listing Directory Contents</strong>: Using <code>dir</code> to view files and folders within the current directory.</li>



<li><strong>Creating and Deleting Files</strong>: Using commands like <code>mkdir</code> (make directory) to create directories, and <code>del</code> to remove files.</li>



<li><strong>Moving and Renaming Files</strong>: Commands like <code>move</code> and <code>rename</code> are used to organize files and folders.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
cd C:UsersYourNameDocuments
dir

</pre></div>


<h4 class="wp-block-heading">2. <strong>Batch Scripting and Automation</strong></h4>



<p class="wp-block-paragraph">Batch scripting allows users to automate sequences of commands. For example, a user might write a script to back up files, automate system checks, or clean up temporary files. These scripts save time and reduce errors in repetitive tasks.</p>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
@echo off
echo Performing system cleanup...
del C:WindowsTemp* /f /q
echo Cleanup complete.

</pre></div>


<h4 class="wp-block-heading">3. <strong>Network Troubleshooting</strong></h4>



<p class="wp-block-paragraph">CMD provides several commands to troubleshoot and manage network settings. Common tools include:</p>



<ul class="wp-block-list">
<li><code>ping</code>: Used to test network connectivity between two devices.</li>



<li><code>ipconfig</code>: Displays the IP configuration of the system.</li>



<li><code>tracert</code>: Traces the route packets take to a destination and helps identify network bottlenecks.</li>



<li><code>netstat</code>: Displays active network connections.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
ping google.com

</pre></div>


<h4 class="wp-block-heading">4. <strong>System Diagnostics and Maintenance</strong></h4>



<p class="wp-block-paragraph">System administrators often use CMD to diagnose and maintain Windows systems. Common diagnostic commands include:</p>



<ul class="wp-block-list">
<li><code>chkdsk</code>: Checks the disk for errors and attempts repairs.</li>



<li><code>sfc</code>: Scans system files for integrity and restores missing or corrupt files.</li>



<li><code>tasklist</code>: Lists currently running processes.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
chkdsk C: /f

</pre></div>


<h4 class="wp-block-heading">5. <strong>Managing System Settings</strong></h4>



<p class="wp-block-paragraph">CMD allows users to configure system settings such as user accounts, network settings, and system services:</p>



<ul class="wp-block-list">
<li><strong>Setting Environment Variables</strong>: <code>set</code> command can be used to define system-wide or user-specific environment variables.</li>



<li><strong>User Management</strong>: <code>net user</code> command can be used to manage user accounts.</li>



<li><strong>Service Management</strong>: Commands like <code>net start</code> and <code>net stop</code> allow users to start or stop services.</li>
</ul>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
net user username /add

</pre></div>


<h4 class="wp-block-heading">6. <strong>Running Executables and Programs</strong></h4>



<p class="wp-block-paragraph">With CMD, you can run executable programs and scripts directly from the command line, which is essential for running automation tasks or launching background processes. You can also pass arguments to programs or configure environment variables for the running processes.</p>



<p class="wp-block-paragraph"><strong>Example</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
python myscript.py

</pre></div>


<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">How CMD Works Along with Architecture</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="626" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-1024x626.png" alt="" class="wp-image-12709" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-1024x626.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-300x183.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-768x469.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-1536x939.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-2048x1251.png 2048w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-73-680x415.png 680w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">To understand how <code>cmd</code> works, it&#8217;s helpful to look at the architecture and components that make it function:</p>



<h4 class="wp-block-heading">1. <strong>Command Processor (cmd.exe)</strong></h4>



<p class="wp-block-paragraph">The primary component responsible for interpreting and executing commands in <code>cmd</code> is the <strong>Command Processor</strong>. <code>cmd.exe</code> is the executable that launches the Command Prompt window, allowing users to interact with the system. When you open the Command Prompt, the <code>cmd.exe</code> process is started, which then reads and executes commands typed by the user.</p>



<p class="wp-block-paragraph">The command processor takes user input and attempts to match it to known commands. If the command is found, it executes the corresponding program or function. If no matching command is found, <code>cmd.exe</code> will return an error message indicating that the command is not recognized.</p>



<h4 class="wp-block-heading">2. <strong>Batch File Interpreter</strong></h4>



<p class="wp-block-paragraph">In addition to processing individual commands, <code>cmd.exe</code> is also responsible for executing <strong>batch files</strong>. Batch files are scripts that contain a series of commands, which <code>cmd.exe</code> runs sequentially. Batch files are typically used for automating tasks and workflows.</p>



<p class="wp-block-paragraph"><strong>Batch File Execution</strong>:<br>When you run a batch file, <code>cmd.exe</code> reads each line of the file and executes the commands in order. Batch files can include conditional logic, loops, and variables, providing powerful automation capabilities.</p>



<h4 class="wp-block-heading">3. <strong>Environment Variables</strong></h4>



<p class="wp-block-paragraph"><code>cmd.exe</code> uses environment variables to store system-wide settings and configuration information. These variables contain information about the system, such as the paths for system executables, user directories, and network settings.</p>



<p class="wp-block-paragraph">For example, the <code>PATH</code> variable tells the operating system where to look for executables when running commands. You can modify environment variables using the <code>set</code> command or by editing system settings.</p>



<h4 class="wp-block-heading">4. <strong>Command Execution Pipeline</strong></h4>



<p class="wp-block-paragraph">When a user types a command in <code>cmd</code>, it can invoke one or more programs, pass data between them, or redirect input/output. The Command Prompt allows for the creation of execution pipelines, where the output of one command can be used as the input for another command.</p>



<p class="wp-block-paragraph"><strong>Example of piping commands</strong>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
dir | find &quot;example&quot;

</pre></div>


<p class="wp-block-paragraph">This command first lists the contents of the directory and then pipes the output to the <code>find</code> command, which searches for the term &#8220;example.&#8221;</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Basic Workflow of CMD</h3>



<p class="wp-block-paragraph">The typical workflow for using the Command Prompt follows these steps:</p>



<ol class="wp-block-list">
<li><strong>Open Command Prompt</strong>:<br>To start using <code>cmd</code>, first open the Command Prompt application. This can be done by searching for <code>cmd</code> or <code>Command Prompt</code> in the Start menu or pressing <code>Win + R</code> and typing <code>cmd</code>.</li>



<li><strong>Enter Commands</strong>:<br>Once the Command Prompt is open, you can enter commands in the terminal window. These commands can range from simple file operations (like <code>dir</code> or <code>cd</code>) to more advanced system configuration or diagnostic tasks.</li>



<li><strong>Execute Commands</strong>:<br>After entering a command, press Enter to execute it. The Command Prompt will execute the command, display the results in the terminal window, or alert you to any errors.</li>



<li><strong>Automate with Batch Files</strong>:<br>For tasks you perform repeatedly, you can create a batch file containing a series of commands. Batch files allow you to automate your workflow and save time.</li>



<li><strong>Close Command Prompt</strong>:<br>Once you&#8217;re finished, you can exit the Command Prompt by typing <code>exit</code> and pressing Enter, or by clicking the &#8220;X&#8221; button in the window.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading">Step-by-Step Getting Started Guide for CMD</h3>



<h4 class="wp-block-heading">Step 1: Open Command Prompt</h4>



<ul class="wp-block-list">
<li><strong>Windows 10/11</strong>: Press <code>Win + X</code> and select <code>Command Prompt</code> or search for <code>cmd</code> in the Start menu.</li>



<li><strong>Windows 7/8</strong>: Press <code>Win + R</code>, type <code>cmd</code>, and press Enter.</li>
</ul>



<h4 class="wp-block-heading">Step 2: Enter Basic Commands</h4>



<p class="wp-block-paragraph">Once <code>cmd</code> is open, you can enter commands like:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
cd C:UsersYourNameDocuments  # Change to a specific directory
dir                               # List files in the current directory

</pre></div>


<h4 class="wp-block-heading">Step 3: Create and Run a Batch Script</h4>



<p class="wp-block-paragraph">You can automate tasks by writing batch scripts:</p>



<ol class="wp-block-list">
<li>Open a text editor and write commands like: <code>@echo off echo Hello, World! pause</code></li>



<li>Save the file as <code>example.bat</code>.</li>



<li>Double-click the batch file to run it.</li>
</ol>



<h4 class="wp-block-heading">Step 4: Use Advanced Commands</h4>



<p class="wp-block-paragraph">To manage system settings or perform troubleshooting, use more advanced commands such as:</p>



<ul class="wp-block-list">
<li><code>ipconfig</code>: Check network settings.</li>



<li><code>chkdsk</code>: Check and repair disk issues.</li>



<li><code>sfc /scannow</code>: Repair system files.</li>
</ul>



<h4 class="wp-block-heading">Step 5: Automate with More Complex Scripts</h4>



<p class="wp-block-paragraph">As you grow more comfortable with <code>cmd</code>, you can create more complex batch files with loops, conditionals, and variables. For example:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
@echo off
set /p username=Enter your name: 
echo Hello, %username%!

</pre></div><p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-cmd-the-command-line-interface-of-windows/">Understanding cmd: The Command Line Interface of Windows</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/understanding-cmd-the-command-line-interface-of-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>My Shell Script Usage Collection</title>
		<link>https://www.scmgalaxy.com/tutorials/my-shell-script-usage-collection/</link>
					<comments>https://www.scmgalaxy.com/tutorials/my-shell-script-usage-collection/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:37:06 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2409</guid>

					<description><![CDATA[<p>sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/my-shell-script-usage-collection/">My Shell Script Usage Collection</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>sgadmin created the topic: My Shell Script Usage Collection</strong><br />
Count Total number of files in Directory and Subdirectory<br />
> find . -type f | wc –l</p>
<p>Count Specific extention files in Directory and Subdirectory<br />
> find . -type f -name \*.mnp |wc –l</p>
<p>Count only Directory<br />
> find . -type d | wc –l</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/my-shell-script-usage-collection/">My Shell Script Usage Collection</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/my-shell-script-usage-collection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell script to run x times</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-to-run-x-times/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-to-run-x-times/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:33:19 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2405</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: shell script to run x times Problem: First i need to cd to this directory $SWDIR/util [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-run-x-times/">Shell script to run x times</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: shell script to run x times</strong><br />
Problem:</p>
<p>First i need to cd to this directory $SWDIR/util<br />
Second i need to run the following either 4 times or 20 times</p>
<p>./swadm add_process 1 BG Y</p>
<p>how can i put this in a script</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re:shell script to run x times</strong><br />
Solution</p>
<p><code># Change directory<br />
cd $SWDIR/util</p>
<p># Set the variable n, which should store the number of iterations,<br />
# either to 4 when condition "bla_bla" or else to 20<br />
if bla_bla then<br />
  n=4<br />
else<br />
  n=20<br />
fi</p>
<p># loop n times and do something in that loop<br />
# (initialize the variable i with 1, then loop as long as i is<br />
# smaller than or equal the variable n. increase i by 1 on<br />
# every looping)<br />
for (( i=1; i<=$n; i++ ))
do
  ./swadm add_process 1 BG Y
done
</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-run-x-times/">Shell script to run x times</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-to-run-x-times/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Whats the difference between running a shell scrip</title>
		<link>https://www.scmgalaxy.com/tutorials/whats-the-difference-between-running-a-shell-scrip/</link>
					<comments>https://www.scmgalaxy.com/tutorials/whats-the-difference-between-running-a-shell-scrip/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:29:33 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2403</guid>

					<description><![CDATA[<p>scmuser created the topic: Whats the difference between running a shell scrip Whats the difference between running a shell script [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/whats-the-difference-between-running-a-shell-scrip/">Whats the difference between running a shell scrip</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Whats the difference between running a shell scrip</strong><br />
Whats the difference between running a shell script as ./script.sh and sh script.sh</p>
<p>have a script that looks like this</p>
<p>#!/bin/bash</p>
<p>function something() {<br />
echo &#8220;hello world!!&#8221;<br />
}</p>
<p>something | tee logfile</p>
<p>I have set the execute permission on this file and when I try running the file like this</p>
<p>$./script.sh</p>
<p>it runs perfectly fine, but when I run it on the command line like this</p>
<p>$sh script.sh</p>
<p>It throws up an error. Why does this happen and what are the ways in which I can fix this.</p>
<p><strong>scmuser replied the topic: Re:Whats the difference between running a shell scrip</strong><br />
Running it as ./script.sh will make the kernel read the first line (the shebang), and then invoke bash to interpret the script. Running it as sh script.sh uses whatever shell your system defaults sh to (on Ubuntu this is Dash, which is sh-compatible, but doesn&#8217;t support some of the extra features of Bash).</p>
<p>You can fix it by invoking it as bash script.sh, or if it&#8217;s your machine you can change /bin/sh to be bash and not whatever it is currently (usually just by symlinking it &#8211; rm /bin/sh &#038;&#038; ln -s /bin/bash /bin/sh). Or you can just use ./script.sh instead if that&#8217;s already working <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/whats-the-difference-between-running-a-shell-scrip/">Whats the difference between running a shell scrip</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/whats-the-difference-between-running-a-shell-scrip/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell script merge two list and remove duplicates</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-merge-two-list-and-remove-duplicates/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-merge-two-list-and-remove-duplicates/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:22:58 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2397</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: shell script merge two list and remove duplicates You want all the records from list_A supplemented [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-merge-two-list-and-remove-duplicates/">Shell script merge two list and remove duplicates</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: shell script merge two list and remove duplicates</strong></p>
<p>You want all the records from list_A supplemented by all the records from list_B for which there is not already a matching name in list A. Mathematically this is:</p>
<p><code>A + B - {w in B | (w,value) in A }</code></p>
<p>\</p>
<p>There are many ways of accomplishing this, depending on access and needed efficiencies.</p>
<p>* If you can modify DB1 (with A), then download table B from DB2, upload it to DB1, then extract your data with the appropriate join<br />
* If you can&#8217;t modify DB1, then download both A and B and concatenate them to the same stream, with A followed by B. Then sort by the first field. Then process the stream one record at time. Duplicate names will be side-by-side. If the same name appears more than one time, print the first and ignore subsequent records with the same name.</p>
<p>Here is a sample solution to your problem (starting with two lists of names/values)</p>
<p><code>#!/bin/bash</p>
<p>A="Smith value1<br />
Jones value2<br />
Wilson value3"</p>
<p>B="Smith value10<br />
Wilson value11<br />
Fox value12<br />
Brown value13"</p>
<p>PrevName="Not a valid name"<br />
echo "$A<br />
$B" | sort -k1  |<br />
while read Name Value<br />
do<br />
   if [ "$Name" != "$PrevName" ]; then<br />
      echo $Name $Value<br />
   fi<br />
   PrevName="$Name"<br />
done > outfile</code></p>
<p>You want all the records from list_A supplemented by all the records from list_B for which there is not already a matching name in list A. Mathematically this is:</p>
<p>A + B &#8211; {w in B | (w,value) in A }</p>
<p>There are many ways of accomplishing this, depending on access and needed efficiencies.</p>
<p>* If you can modify DB1 (with A), then download table B from DB2, upload it to DB1, then extract your data with the appropriate join<br />
* If you can&#8217;t modify DB1, then download both A and B and concatenate them to the same stream, with A followed by B. Then sort by the first field. Then process the stream one record at time. Duplicate names will be side-by-side. If the same name appears more than one time, print the first and ignore subsequent records with the same name.</p>
<p>Here is a sample solution to your problem (starting with two lists of names/values):</p>
<p>#!/bin/bash</p>
<p>A=&#8221;Smith value1<br />
Jones value2<br />
Wilson value3&#8243;</p>
<p>B=&#8221;Smith value10<br />
Wilson value11<br />
Fox value12<br />
Brown value13&#8243;</p>
<p>PrevName=&#8221;Not a valid name&#8221;<br />
echo &#8220;$A<br />
$B&#8221; | sort -k1 |<br />
while read Name Value<br />
do<br />
if [ &#8220;$Name&#8221; != &#8220;$PrevName&#8221; ]; then<br />
echo $Name $Value<br />
fi<br />
PrevName=&#8221;$Name&#8221;<br />
done > outfile</p>
<p>Here is the output:<br />
Brown value13<br />
Fox value12<br />
Jones value2<br />
Smith value1<br />
Wilson value11<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-merge-two-list-and-remove-duplicates/">Shell script merge two list and remove duplicates</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-merge-two-list-and-remove-duplicates/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell script for recursive delete required.</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-for-recursive-delete-required/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-for-recursive-delete-required/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:17:49 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2395</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d "$1" [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-for-recursive-delete-required/">Shell script for recursive delete required.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Shell script for recursive delete required.</strong></p>
<p><code>#!/bin/bash</p>
<p>if [ $# -ne 1 -o ! -d "$1" ]<br />
then<br />
echo "Usage $0 dirname"<br />
exit 1<br />
fi</p>
<p>find "$1" -type f -print | while read file<br />
do<br />
dir=$(dirname "$file")<br />
dname=$(basename "$dir")<br />
fname=$(basename "$file")<br />
[ "$dname" = "$fname" ] && rm "$file"<br />
done</code></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-for-recursive-delete-required/">Shell script for recursive delete required.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-for-recursive-delete-required/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell Script to delete a folder that is more then</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-to-delete-a-folder-that-is-more-then/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-to-delete-a-folder-that-is-more-then/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:09:37 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2391</guid>

					<description><![CDATA[<p>scmuser created the topic: Shell Script to delete a folder that is more then Shell Script to delete a folder [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-delete-a-folder-that-is-more-then/">Shell Script to delete a folder that is more then</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Shell Script to delete a folder that is more then</strong><br />
Shell Script to delete a folder that is more then 1 week old</p>
<p>Hi all,<br />
i have this scritp<br />
set -x<br />
cd /var/log/<br />
direc=&#8221;bkp_`date +%F`&#8221;<br />
mkdir $direc<br />
cp /var/log/*.log /tmp/bkp.<br />
&#8212;<br />
Here im ok, what i need is a scritp to check if i have a folder that is more then 1 week to delete it.<br />
Any help please?</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-delete-a-folder-that-is-more-then/">Shell Script to delete a folder that is more then</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-to-delete-a-folder-that-is-more-then/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell Script Run in Background</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-run-in-background/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-run-in-background/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:08:05 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2389</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: shell script run in background I wanted to run a particular shell program in a background [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-run-in-background/">Shell Script Run in Background</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: shell script run in background</strong><br />
I wanted to run a particular shell program in a background and it should not be dependent on terminal session of putty or telnet?</p>
<p>Just finding solution?<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re:shell script run in background</strong><br />
i found 2 following solution for this..<br />
./myscript&#038;</p>
<p>You can prevent the signal from getting to the program by starting it like this:<br />
nohup command &#038;<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-run-in-background/">Shell Script Run in Background</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-run-in-background/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Restore The Dump File using Shell Scripting</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-restore-the-dump-file-using-shell-scripting/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-restore-the-dump-file-using-shell-scripting/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 08:31:51 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2379</guid>

					<description><![CDATA[<p>scmuser created the topic: how to restore the dump file using shell scripting I have created a script file to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-restore-the-dump-file-using-shell-scripting/">How to Restore The Dump File using Shell Scripting</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: how to restore the dump file using shell scripting</strong></p>
<p>I have created a script file to dump the application files using the following script</p>
<p>Code<br />
=============<br />
#!/bin/bash<br />
#Full Day Backup Script<br />
#application folders backup</p>
<p>now=$(date +&#8221;%d-%m-%Y&#8221;)<br />
#use 1 instead of 0 which is incremental backup<br />
dump -0f $now /var/www/html/*<br />
=============</p>
<p>using this we can successfully dumped the application files.</p>
<p>Now i want to restore the dumpfile</p>
<p>How can i restore using shell script?</p>
<p>please help</p>
<p>Thanx in advance</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-restore-the-dump-file-using-shell-scripting/">How to Restore The Dump File using Shell Scripting</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-restore-the-dump-file-using-shell-scripting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell Script to Find All New Files Added</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-to-find-all-new-files-added/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-to-find-all-new-files-added/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 08:14:50 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2373</guid>

					<description><![CDATA[<p>scmuser created the topic: shell script to find all new files added Hi, i am looking for a shell script [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-find-all-new-files-added/">Shell Script to Find All New Files Added</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: shell script to find all new files added</strong></p>
<p>Hi,</p>
<p>i am looking for a shell script to find all new files added or modified after a certain date &#038; Time??</p>
<p>Any help?</p>
<p><strong>mnanjala replied the topic: Re:shell script to find all new files added</strong><br />
This should solve the problem</p>
<p>find . -type f -mtime -7 -print</p>
<p>Here,<br />
* -mmin n (modification time in minutes)<br />
* -mtime n (modification time in days)<br />
* -newer file (modification time newer than modification time of file)<br />
* -daystart (adjust start time from current time to start of day)<br />
* Plus alternatives for access time and &#8216;change&#8217; or &#8216;create&#8217; time.</p>
<p>Or thinkikng</p>
<p>touch can be used</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-to-find-all-new-files-added/">Shell Script to Find All New Files Added</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-to-find-all-new-files-added/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell Script Program 1</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-program-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-program-1/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 08:11:53 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2371</guid>

					<description><![CDATA[<p>scmuser created the topic: shell script program 1 Device a script that takes a filename as argument ( which must [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-program-1/">Shell Script Program 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: shell script program 1</strong></p>
<p>Device a script that takes a filename as argument ( which must exist in the current directory) and locates from your home directory tree all path names of its links. The list should be mailed to self</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-program-1/">Shell Script Program 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-program-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Shell script program 2</title>
		<link>https://www.scmgalaxy.com/tutorials/shell-script-program-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shell-script-program-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:58:55 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2358</guid>

					<description><![CDATA[<p>scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-program-2/">Shell script program 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Shell script program 2</strong></p>
<p>Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include error &#8211; checking to test whether two arguments were entered?</p>
<p><strong>tpatil replied the topic: Re: Shell script program 2</strong><br />
If I understand correctly your question, You want to pass 2 parameters to shell script and print the sum of those. Also, you want to throw error if the number of parametrs are less than 2.</p>
<p><code>#!/bin/bash</p>
<p>if [ $# -lt 2 ]<br />
then<br />
  echo "Usage: $0 arg1 arg2"<br />
  exit<br />
fi</p>
<p>echo "\$1=$1"<br />
echo "\$2=$2"</p>
<p>let add=$1+$2<br />
let sub=$1-$2</p>
<p>echo -e "Addition=$add\nSubtraction=$sub\n"</code></p>
<p>Hope this helps&#8230;</p>
<p><strong>renjith replied the topic: Re: Shell script program 2</strong><br />
#!/bin/ksh</p>
<p>while echo &#8221; Enter two numbers :\n &#8221; ; do<br />
echo &#8220;Enter num 1: &#8220;; read A;<br />
echo &#8220;Enter num 2: &#8220;; read B;<br />
if [ -z $A -o -z $B ] ;then<br />
echo &#8221; Invalid input , pls enter again&#8221;<br />
else<br />
break<br />
fi<br />
done</p>
<p>export A B</p>
<p>echo &#8221; ************* MENU *********** \n&#8221;<br />
echo &#8221; 1. cal using bc &#8220;;<br />
echo &#8221; 2. cal using expr&#8221;;<br />
echo &#8221; enter you choice :&#8221;;<br />
read c;</p>
<p>case $c in<br />
1) sum=`echo &#8221; $A + $B &#8220;|bc` ;;<br />
2) sum=`expr $A + $B` ;;<br />
*) echo &#8220;invalid option , run script again&#8221;<br />
esac</p>
<p>if [ $? -eq 0 ]<br />
then echo &#8221; Sum is $sum&#8221;<br />
else<br />
echo &#8221; Script failed &#8221;<br />
fi</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shell-script-program-2/">Shell script program 2</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shell-script-program-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 4</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-4/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-4/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:52:27 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2356</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 4 Expand the scope of the script in 16.12 [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-4/">Test your Shell Scripting Skills: &#8211; Program 4</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 4</strong></p>
<p>Expand the scope of the script in 16.12 (Test Your Understanding) to perform search recursively.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-4/">Test your Shell Scripting Skills: &#8211; Program 4</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 7</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-7/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-7/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:51:01 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2354</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 7 You are moving files to handled which accepts [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-7/">Test your Shell Scripting Skills: &#8211; Program 7</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 7</strong></p>
<p>You are moving files to handled which accepts only 8+3 type filesname. Produce a list of those files in your current directory that fail in this test.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-7/">Test your Shell Scripting Skills: &#8211; Program 7</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 8</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-8/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-8/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:49:43 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2352</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 8 Write a script that displays a special listing [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-8/">Test your Shell Scripting Skills: &#8211; Program 8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 8</strong></p>
<p>Write a script that displays a special listing showing the (i) permission (ii) size (iii) filename (iv) last modification time (v) last access time of filenames supplied as arguments. Provide suitable headers using the printf command.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-8/">Test your Shell Scripting Skills: &#8211; Program 8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 9</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-9/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-9/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:48:11 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2350</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 9 Find out the pathname of the Korn shell [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-9/">Test your Shell Scripting Skills: &#8211; Program 9</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 9</strong></p>
<p>Find out the pathname of the Korn shell on your machine and then change the interpreter line in all shell script in the current directory that show a different pathname for ksh</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-9/">Test your Shell Scripting Skills: &#8211; Program 9</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 10</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-10/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-10/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:47:00 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2348</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 10 Add the statement #inlclude at the beginning of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-10/">Test your Shell Scripting Skills: &#8211; Program 10</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 10</strong></p>
<p>Add the statement #inlclude <stdio.h> at the beginning of every C source file in the current directory containing printf or fprintf, if it does not already have it included.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-10/">Test your Shell Scripting Skills: &#8211; Program 10</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 11</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-11/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-11/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:45:40 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2346</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 11 Write a script that compares two direcotries bar1 [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-11/">Test your Shell Scripting Skills: &#8211; Program 11</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 11</strong></p>
<p>Write a script that compares two direcotries bar1 and bar2 (supplied as arguments) and copies or overwrites to bar1 from bar2 every file that is (i) not present in bar1 or (ii) newer than its namespace in bar1. (HINT: Use the find command)</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-11/">Test your Shell Scripting Skills: &#8211; Program 11</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 12</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-12/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-12/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:44:24 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2344</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 12 You have a number of C programs that [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-12/">Test your Shell Scripting Skills: &#8211; Program 12</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 12</strong></p>
<p>You have a number of C programs that certain comment lines at the beginning of each program. The lines begin with /* followed by the first line of comment, butthe terminator line has */ as the only characters in the line. Remove these comments from all files.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-12/">Test your Shell Scripting Skills: &#8211; Program 12</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Test your Shell Scripting Skills: &#8211; Program 13</title>
		<link>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-13/</link>
					<comments>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-13/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:42:18 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Shell]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2342</guid>

					<description><![CDATA[<p>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 13 Write a shell script that uses find to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-13/">Test your Shell Scripting Skills: &#8211; Program 13</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Test your Shell Scripting Skills: &#8211; Program 13</strong></p>
<p>Write a shell script that uses find to look for a file and echo a suitable message if the file is not found. you must not store the find output in a file.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-13/">Test your Shell Scripting Skills: &#8211; Program 13</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/test-your-shell-scripting-skills-program-13/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
