<?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>Xargs Command Examples Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/xargs-command-examples/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/xargs-command-examples/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:50:17 +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>20 Xargs Commands Examples in Linux / UNIX &#124; Xargs Commands Tutorials</title>
		<link>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 11:45:14 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Xargs Command]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Xargs]]></category>
		<category><![CDATA[Xargs Command]]></category>
		<category><![CDATA[Xargs Command Examples]]></category>
		<category><![CDATA[Xargs command line]]></category>
		<category><![CDATA[Xargs Commands Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-xargs-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>Under Development The xargs command is extremely useful when we combine it with other commands.This tutorials explains the usage of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/">20 Xargs Commands Examples in Linux / UNIX | Xargs Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-3174 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in-.png" alt="xargs-commands" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in--300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>Under Development</p>
<div></div>
<div></div>
<div>The xargs command is extremely useful when we combine it with other commands.This tutorials explains the usage of xargs command using few simple examples.</div>
<div></div>
<div>1. Xargs Basic Example</div>
<div>The xargs command (by default) expects the input from stdin, and executes /bin/echo command over the input. When you execute xargs without any argument, or when you execute it without combining with any other commands. you get Welcome message</div>
<div></div>
<div>&gt; xargs</div>
<div>Hi,</div>
<div>Welcome to TGS.Hi, Welcome to TGS.</div>
<div>After you type something, press ctrl+d, which will echo the string back to you on stdout as shown below.</div>
<div></div>
<div>2. Specify Delimiter Using -d option</div>
<div>Delimiters can be applied so that each character in the input is taken literally using -d option in xargs.In the following example, when you use the -d\n, it will preserve newline delimiter in the output, and display the output exactly as it was typed.</div>
<div></div>
<div>&gt; xargs -d\n</div>
<div>Hi,</div>
<div>Welcome to TGS.</div>
<div></div>
<div>3. Limit Output Per Line Using -n Option</div>
<div></div>
<div>By default as explained earlier, xargs displays whatever comes to its stdin as shown below.</div>
<div></div>
<div>&gt; echo a b c d e f| xargs</div>
<div>a b c d e f</div>
<div></div>
<div>&gt; echo a b c d e f| xargs -n 3</div>
<div>a b c</div>
<div>d e f</div>
<div></div>
<div>In the following example, we used -n 3, which will display only 3 items per line in the xargs output.</div>
<div></div>
<div>4. Delete Files that has White-space in the Filename</div>
<div>&gt; find . -name &#8220;*.c&#8221; -print0 | xargs -0 rm -rf</div>
<div></div>
<div></div>
<div>Example</div>
<div># fild /usr/preserve –mtime +30 –exec rm –f {} \;</div>
<div>is equivalent to&#8230;.</div>
<div># find /usr/preserve –mtime +30 –print | xargs rm –f</div>
<div># find /usr/preserve –size +1024 –print | xargs –n20 rm –f</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/">20 Xargs Commands Examples in Linux / UNIX | Xargs Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
