<?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>WiredRevolution.com &#187; windows</title>
	<atom:link href="http://www.wiredrevolution.com/tag/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Convert text files within a directory from Windows to Unix format</title>
		<link>http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-text-files-within-a-directory-from-windows-to-unix-format</link>
		<comments>http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format#comments</comments>
		<pubDate>Wed, 07 Jan 2009 14:14:33 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[CRLF]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=901</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/bash_icon.png" width="80" height="34" alt="" title="bash" /><br/>When a file is saved in Windows and then moved to a Linux system the formatting differences can cause a variety of problems. To effectively use these files you will need to change the format from Windows/DOS to Unix. This conversion occurs by simply removing the Windows carriage return characters. I have explained how to [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr' rel='bookmark' title='Permanent Link: Remove Windows carriage returns with tr'>Remove Windows carriage returns with tr</a></li>
<li><a href='http://www.wiredrevolution.com/commands/convert-pdf-file-to-text-with-pdftotext' rel='bookmark' title='Permanent Link: Convert PDF file to text with pdftotext'>Convert PDF file to text with pdftotext</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/convert-a-relative-path-to-absolute-path-in-bash' rel='bookmark' title='Permanent Link: Convert a relative path to absolute path in BASH'>Convert a relative path to absolute path in BASH</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/bash_icon.png" width="80" height="34" alt="" title="bash" /><br/><p>When a file is saved in Windows and then moved to a Linux system the formatting differences can cause a variety of problems. To effectively use these files you will need to change the format from Windows/DOS to Unix. This conversion occurs by simply removing the Windows carriage return characters.</p>
<p>I have explained how to <a href="http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr">use the tr command remove these windows carriage returns</a>, but when you have a large amount of files to convert this can become tedious. As a solution to this I have written a BASH script to convert all text files within a directory.</p>
<pre>
#!/bin/bash

for file in /directory/to/convert/*
do
  if [[ -f $file &#038;&#038; `file $file | grep text` ]]
  then
    tr -d '\r' < $file > "$file"_clear
    mv "$file"_clear $file
  fi
done
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr' rel='bookmark' title='Permanent Link: Remove Windows carriage returns with tr'>Remove Windows carriage returns with tr</a></li>
<li><a href='http://www.wiredrevolution.com/commands/convert-pdf-file-to-text-with-pdftotext' rel='bookmark' title='Permanent Link: Convert PDF file to text with pdftotext'>Convert PDF file to text with pdftotext</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/convert-a-relative-path-to-absolute-path-in-bash' rel='bookmark' title='Permanent Link: Convert a relative path to absolute path in BASH'>Convert a relative path to absolute path in BASH</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove Windows carriage returns with tr</title>
		<link>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-windows-carriage-returns-with-tr</link>
		<comments>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr#comments</comments>
		<pubDate>Sun, 30 Nov 2008 15:46:17 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[CRLF]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=794</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The end of a line in a UNIX text file is designated with the newline character. In Windows, a line ends with both newline and carriage return ASCII characters. If a file is saved in Windows and then moved to a Linux system these carriage returns can cause all sorts of problems. If the text [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The end of a line in a UNIX text file is designated with the newline character. In Windows, a line ends with both newline and carriage return ASCII characters. If a file is saved in Windows and then moved to a Linux system these carriage returns can cause all sorts of problems. If the text file is a BASH script for example it will not run correctly since it doesn&#8217;t know how to interpret these characters.</p>
<p>You can verify that a text file has these Windows carriage returns by running the <strong>cat</strong> command with the <strong>&#8216;-v</strong>&#8216; option which shows the non-printing characters.</p>
<pre>
$ cat -v inputfile | head
</pre>
<pre>
first line^M
second line^M
</pre>
<p>You can see the carriage return characters, &#8220;<strong>^M</strong>&#8221; (Cntl-M). </p>
<p>CRLF = Carriage Return Line Feed</p>
<p>There are various was to remove these carriage returns. You can use the <strong>dos2unix</strong> command but this is rarely installed by default on a a Linux system. The easiest way then is to use the &#8220;<strong>tr</strong>&#8221; command utility which always comes standard.</p>
<p>The command uses the <strong>tr</strong> command which translates and removes characters. This will remove the carriage return characters.</p>
<pre>
$ tr -d '\r' < inputfile > outputfile
</pre>
<p>You can verify they are really gone by running the same cat command again.</p>
<pre>
$ cat -v outputfile | head
</pre>
<pre>
first line
second line
</pre>
<p>You can also run the file command.</p>
<pre>
$ file inputfile
</pre>
<pre>
inputfile:             ASCII text
</pre>
<p>Optionally you can now overwrite the original file.</p>
<pre>
$ mv outputfile inputfile
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/commands/display-the-first-part-of-a-file-with-head' rel='bookmark' title='Permanent Link: Display the first part of a file with head'>Display the first part of a file with head</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/remove-windows-carriage-returns-with-tr/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a Windows Boot Disk with a Linux Machine</title>
		<link>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-windows-boot-disk-with-a-linux-machine</link>
		<comments>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine#comments</comments>
		<pubDate>Mon, 17 Nov 2008 12:36:27 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[boot disk]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[disk image]]></category>
		<category><![CDATA[floppy disk]]></category>
		<category><![CDATA[self extracting exe]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=672</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The standard way to create a Windows boot disk is to have access to a Windows system. If you have access to a Linux system instead, and know a couple tricks, you can create boot disk as well. The first thing to do is find a website that has the boot disks available for download. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The standard way to create a Windows boot disk is to have access to a Windows system.  If you have access to a Linux system instead, and know a couple tricks, you can create boot disk as well.</p>
<p>The first thing to do is find a website that has the boot disks available for download.  There are plenty of these out there so take your pick. The only thing you must specifically do is make sure that you download the <strong>disk image</strong> and not a <strong>self extracting executable</strong> file which must be run under Windows.</p>
<p>If the image is zipped unzip it.</p>
<pre>
$ unzip cdboot1.zip
</pre>
<pre>
Archive:  cdboot1.zip
  inflating: CDBOOT1.IMG
</pre>
<p>Check that the disk image is the correct size.</p>
<pre>
$ ls -lh CDBOOT1.IMG
</pre>
<pre>
-r--r--r-- 1 ryan ryan 1.5M 1999-12-07 12:00 CDBOOT1.IMG
</pre>
<p>Finally, you will use the <strong>dd</strong> command to copy the disk image to a blank floppy disk.</p>
<pre>
$ dd if=CDBOOT1.IMG of=/dev/fd0
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the MAC address on a Windows machine</title>
		<link>http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-the-mac-address-on-a-windows-machine</link>
		<comments>http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine#comments</comments>
		<pubDate>Sun, 28 Sep 2008 18:54:48 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[mac address]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=152</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/windows_icon.png" width="80" height="71" alt="" title="windows" /><br/>For whatever reason lets assume you find yourself on a Windows machine and you need to obtain the MAC address of its network adapter. Do the following. Go to Start -> Run which will bring up a text box. In this box type cmd. A command prompt will appear. Type this is the terminal. ipconfig [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/windows_icon.png" width="80" height="71" alt="" title="windows" /><br/><p>For whatever reason lets assume you find yourself on a Windows machine and you need to obtain the MAC address of its network adapter.  Do the following.</p>
<p>Go to <strong>Start -> Run</strong> which will bring up a text box.  In this box type <strong>cmd</strong>.  A command prompt will appear.</p>
<p>Type this is the terminal.</p>
<pre>
ipconfig /all
</pre>
<p>A lot of information will fly by but the MAC address is labeled <strong>Physical Address</strong>. The number is 6 pairs of hexidecimal numbers separated by dashes. It will look like this.</p>
<pre>
Physical Address . . . . . . . . . : a1-b2-c3-d4-e5-f6
</pre>
<p>If the machine has more than one network adapter (wired and wireless), then you will see an address for each one.</p>
<p>This will work with Windows 2000/XP/Vista.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine' rel='bookmark' title='Permanent Link: Creating a Windows Boot Disk with a Linux Machine'>Creating a Windows Boot Disk with a Linux Machine</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format' rel='bookmark' title='Permanent Link: Convert text files within a directory from Windows to Unix format'>Convert text files within a directory from Windows to Unix format</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

