A mix between:   ls -rtl | more   and   find . -type f -name '*.xml' | more   Just filtering XML files.
122179
When I need to find my recently used files, this command:  ls -lt  lists in ascending order (by time), when there are lots files, I need to scroll to the top to see needed files, because won't fit in terminal screen.  After finding out that tac inverses the output, I use: ls -lt dir/ | tac Is there more fun way of doing it, without using external scripts/utils?
38851
I need to find and delete all files in subdirectories that are not .SQL files. I can't figure out how to search for &lt;&gt;.SQL or !.SQL in Windows Search.  Most of the solutions that I've seen here are to find specific extensions and do something with them. I'm looking for the opposite.
46112
Say I'm printing out a long series of strings, and instead of only showing lines containing a certain pattern (which one uses "grep" to do), how do I filter out certain patterns?
33855
This is what I normally use. But I need to recursively find an extension with, then, and else. The problem with this one is that it is not recursive.  if ls $HOME/Downloads/*.ext &gt;/dev/null 2&gt;&amp;1 then     : else     : fi
42305
I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements and attributes, perhaps modify a few and write the XML back out again to disk (preferably with nice, indented formatting).  What would be the best XML parser for my needs?  There are lots to choose from.  Some I'm aware of are:            And of course the one in the JDK (I'm using Java 6).  I'm familiar with Xerces but find it clunky.  Recommendations?
35156
I have an XDocument object. I want to query for elements with a particular name at any depth using LINQ. When I use Descendants(&quot;element_name&quot;), I only get elements that are direct children of the current level. I'm looking for the equivalent of &quot;//element_name&quot; in XPath...should I just use XPath, or is there a way to do it using LINQ methods?
7245
I would like to build a regexp in Java that would be passed in a FilenameFilter to filter the files in a dir.  The problem is that I can't get the hang of the regexp "mind model" :)  This is the regexp that I came up with to select the files that I would like to exclude   ((ABC|XYZ))+\w*Test.xml  What I would like to do is to select all the files that end with Test.xml but do not start with ABC or XYZ.  Could you please add any resources that could help me in my battle with regexps.  Thanks  The following resource explains a lot of things about regexp
30572
Is there any tool that can get lines which file A contains, but file B doesn't? I could make a little simple script with, e.g, perl, but if something like that already exists, I'll save my time from now on.
124182
I want to list all the files, in directory I am currently in, with for example &quot;a&quot; in their name. I know that the first part of the command would be ls -l, but i do not know how to finish it.
20120
In .Net, I found this great library,  that allows you  to easily parse non-well-formed HTML using XPath.  I've used this for a couple years in my .Net sites, but I've had to settle for more painful libraries for my Python, Ruby and other projects.  Is anyone aware of similar libraries for other languages?
44735
I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.  ls -l `find Test/ -perm /u=x,g=x,o=x -type f`   Is this a good/right/quick command or not?  My solution is:  find Test/ -executable -type f -exec ls -l {} \;   and got the same result as warl0ck and pradeepchhetri offered.
92353
Assuming that the grep tool should be used, I'd like to search for the text string "800x600" throughout the entire file system.  I tried:  grep -r 800x600 /   but it doesn't work.  What I believe my command should do is grep recursively through all files/folders under root for the text "800x600" and list the search results.  What am I doing wrong?
34800
I want to find all files which contain a specific string of text. The grep command works, but I don't know how to use it for every directory (I can only do it for my current directory). I tried reading man grep, but it didn't yield any help.
79289
I try to search for lines that start with "1" using   ls -1 | grep ^1*   but it returns lines that do not start with 1. What I am missing here?
107063
I am searching for a method to find only JPEG files/ With my limited knowledge of Linux I came to this point:   list all paths that exist from root below with find / pipe the result into next command and perform the file command on each found path with xargs file In the result of the file command is a JPEG string contained, I thought maybe it would be possible somehow to an IF-statement to filter only the JPEGs: If (JPEG contained in output of file command) {show argument of file}   once more:  find / | xargs file | "If statement"    Could you please correct me, give me a hint how to perform the task or give a solution?
86387
Trying to find an XML file I can use in lieu of a look-up database table until we get our web hosting switched over to the right DB.  Can anyone refer me to an XML file with elements whose children have zipcodes, states, and cities? E.g.:  &lt;zip code="98117"&gt;     &lt;state&gt;WA&lt;/state&gt;     &lt;city&gt;Seattle&lt;/state&gt; &lt;/zip&gt;   Or  &lt;entry&gt;     &lt;zip&gt;98117&lt;/zip&gt;     &lt;state&gt;WA&lt;/state&gt;     &lt;city&gt;Seattle&lt;/city&gt; &lt;/entry&gt;   I'll be using LINQ in C# to query this data.
106453
I am supposed to use ls to find files that end in a certain letter, but it does not matter if the file has an extension or not.  For example, I want it to do this  &gt; ls test test.txt test.ascii other.txt  &gt; ls [something] test test.txt test.ascii  So that I can find files that end with a 't', but it doesn't include the file where the extension ends in t  Edit: I am supposed to assume that the only period characters in the filename will be for the extension and there will be no others