<?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>Frequently Asked Questions About Linux / UNIX &#187; input file</title> <atom:link href="http://www.cyberciti.biz/faq/tag/input-file/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 03 Feb 2012 22:38:32 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>awk / cut: Skip First Two Fields and Print the Rest of Line</title><link>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-skip-fields-command/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-skip-fields-command/#comments</comments> <pubDate>Wed, 13 Jul 2011 07:51:13 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[awk command]]></category> <category><![CDATA[awk print]]></category> <category><![CDATA[command echo]]></category> <category><![CDATA[cut command]]></category> <category><![CDATA[f3]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[linux operating systems]]></category> <category><![CDATA[printing lines]]></category> <category><![CDATA[python]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[UNIX]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=10831</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">I</span>'d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:<blockquote>This is a test
Giving back more than we take</blockquote> I want my input file with the following output:<blockquote>a test
more than we take</blockquote> How do I printing lines from the nth field using awk under UNIX or Linux operating systems?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-bsd-appleosx-skip-fields-command/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Bash Shell: Extract Digits From a String</title><link>http://www.cyberciti.biz/faq/linux-unix-bsd-shell-script-to-get-digits-from-string/</link> <comments>http://www.cyberciti.biz/faq/linux-unix-bsd-shell-script-to-get-digits-from-string/#comments</comments> <pubDate>Wed, 16 Feb 2011 10:56:41 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[digits]]></category> <category><![CDATA[grep command]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[shell utilities]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=10040</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I extract digits only from a given string under Bash shell?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-unix-bsd-shell-script-to-get-digits-from-string/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Linux / UNIX: mplayer Play mp3s From a Playlist File</title><link>http://www.cyberciti.biz/faq/unix-linux-mplayer-playlist-command-line-example/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-mplayer-playlist-command-line-example/#comments</comments> <pubDate>Sun, 19 Dec 2010 08:21:54 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[3ivx]]></category> <category><![CDATA[asf]]></category> <category><![CDATA[CentOS mplayer playlist]]></category> <category><![CDATA[codecs]]></category> <category><![CDATA[Debian mplayer playlist]]></category> <category><![CDATA[Fedora mplayer playlist]]></category> <category><![CDATA[find command]]></category> <category><![CDATA[Gentoo mplayer playlist]]></category> <category><![CDATA[gui tools]]></category> <category><![CDATA[h 264]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[Mandriva mplayer playlist]]></category> <category><![CDATA[mplayer -playlist]]></category> <category><![CDATA[mplayer command]]></category> <category><![CDATA[music directory]]></category> <category><![CDATA[mylist]]></category> <category><![CDATA[ogg]]></category> <category><![CDATA[OpenSUSE mplayer playlist]]></category> <category><![CDATA[playing music]]></category> <category><![CDATA[playlist format]]></category> <category><![CDATA[Redhat mplayer playlist]]></category> <category><![CDATA[RHEL mplayer playlist]]></category> <category><![CDATA[Slackware mplayer playlist]]></category> <category><![CDATA[Suse mplayer playlist]]></category> <category><![CDATA[Ubuntu mplayer playlist]]></category> <category><![CDATA[Winamp]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=9639</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/unix/' title='See all UNIX related articles/faq'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/unix-logo.gif' border='0' /></a></div> <span
class="drop_cap">I</span>'m an extreme newbie to the Linux world, but any time I try to get play files according to a playlist file using mplayer command line it turns up this error:<br
/><blockquote><strong>$ mplayer playlist.m3u</strong> MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing playlist.m3u.
Cache fill:  0.00% (44 bytes)
Exiting... (End of file)</blockquote><br
/> How do I fix this and play music without using GUI tools?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-mplayer-playlist-command-line-example/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Grep From Files and Display the File Name</title><link>http://www.cyberciti.biz/faq/grep-from-files-and-display-the-file-name/</link> <comments>http://www.cyberciti.biz/faq/grep-from-files-and-display-the-file-name/#comments</comments> <pubDate>Mon, 13 Sep 2010 19:11:34 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[grep command]]></category> <category><![CDATA[grep root]]></category> <category><![CDATA[group root]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[man sudo]]></category> <category><![CDATA[root test]]></category> <category><![CDATA[UNIX]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=8813</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I grep from a number of files and display the file name only?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/grep-from-files-and-display-the-file-name/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Bash Shell: Convert Tabs To Spaces In a File</title><link>http://www.cyberciti.biz/faq/bash-shell-convert-tabs-to-spaces-in-a-file/</link> <comments>http://www.cyberciti.biz/faq/bash-shell-convert-tabs-to-spaces-in-a-file/#comments</comments> <pubDate>Fri, 05 Mar 2010 11:43:11 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[backspace]]></category> <category><![CDATA[backspace characters]]></category> <category><![CDATA[Bash]]></category> <category><![CDATA[column count]]></category> <category><![CDATA[comma]]></category> <category><![CDATA[comma separated list]]></category> <category><![CDATA[Convert]]></category> <category><![CDATA[converts]]></category> <category><![CDATA[decrement]]></category> <category><![CDATA[expand command]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[man command]]></category> <category><![CDATA[ow]]></category> <category><![CDATA[tabs]]></category> <category><![CDATA[unexpand]]></category> <category><![CDATA[unexpand command]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=6661</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do convert tabs to spaces in a file using a bash shell?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/bash-shell-convert-tabs-to-spaces-in-a-file/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Grep Count Lines If a String / Word Matches</title><link>http://www.cyberciti.biz/faq/grep-count-lines-if-a-string-word-matches/</link> <comments>http://www.cyberciti.biz/faq/grep-count-lines-if-a-string-word-matches/#comments</comments> <pubDate>Thu, 18 Feb 2010 17:51:01 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[/etc/passwd]]></category> <category><![CDATA[etc passwd]]></category> <category><![CDATA[grep command]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[string word]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[unix operating systems]]></category> <category><![CDATA[vivek]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=10067</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/linux/' title='See all GNU/Linux related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/linux-logo.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I count lines if given word or string matches for each input file under Linux or UNIX operating systems?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/grep-count-lines-if-a-string-word-matches/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux / UNIX Shell: Sort Date</title><link>http://www.cyberciti.biz/faq/linux-unix-sort-date-data-using-sortcommand/</link> <comments>http://www.cyberciti.biz/faq/linux-unix-sort-date-data-using-sortcommand/#comments</comments> <pubDate>Thu, 23 Oct 2008 17:48:01 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[date time]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[linux sort date]]></category> <category><![CDATA[linux sort date date]]></category> <category><![CDATA[shell sort]]></category> <category><![CDATA[sort command]]></category> <category><![CDATA[sort data]]></category> <category><![CDATA[sort date using sort command]]></category> <category><![CDATA[sorts]]></category> <category><![CDATA[time data]]></category> <category><![CDATA[unix sort date]]></category> <category><![CDATA[unix sort date date]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=2219</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
style='color: rgb(255, 0, 0);'>Q. </span>How do I sort date type of data stored in a text file which is in following sample format:<br
/><pre>
Code         Date          TIME
HOS05	23/12/2008	10AM
HOS06	15/12/2008	2PM
HOS62	29/12/2008	10AM
HOS64	23/12/2008	2PM
HOS70	26/12/2008	10AM
ZFT01	06/12/2008	10AM
HOS73	11/12/2008	2PM
MHOS051	05/12/2008	10AM
MHOS041	20/12/2008	2PM
MHOS042	27/12/2008	2PM
MHOS053	11/12/2008	10AM
MHOS043	30/12/2008	2PM
</pre><br
/> How do I sort data date and time wise?]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/linux-unix-sort-date-data-using-sortcommand/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Bash Shell: Replace a String With Another String In All Files Using sed and Perl -pie Options</title><link>http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/</link> <comments>http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/#comments</comments> <pubDate>Tue, 27 Nov 2007 18:32:24 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[BASH Shell]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[apple]]></category> <category><![CDATA[fi]]></category> <category><![CDATA[gnu]]></category> <category><![CDATA[gnu sed]]></category> <category><![CDATA[input file]]></category> <category><![CDATA[mkdir]]></category> <category><![CDATA[mkdir command]]></category> <category><![CDATA[mv]]></category> <category><![CDATA[mv command]]></category> <category><![CDATA[perl -pie]]></category> <category><![CDATA[perl command]]></category> <category><![CDATA[perl replace words]]></category> <category><![CDATA[replace word string]]></category> <category><![CDATA[sed command]]></category> <category><![CDATA[sed replace words]]></category> <category><![CDATA[shell script replace strings]]></category> <category><![CDATA[shell script replace words]]></category> <category><![CDATA[tmp]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/faq/category/bash-shell/' title='See all Bash/Shell scripting related FAQ'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">H</span>ow do I replace a string with another string in all files? For example, ~/foo directory has 100s of text file and I'd like to find out xyz string and replace with abc. I'd like to use sed or any other tool to replace all occurrence of the word.]]></description> <wfw:commentRss>http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/feed/</wfw:commentRss> <slash:comments>34</slash:comments> </item> </channel> </rss>
