Sponsored Content
Full Discussion: How to sort find results
Top Forums UNIX for Dummies Questions & Answers How to sort find results Post 88628 by akrathi on Monday 7th of November 2005 12:14:21 PM
Old 11-07-2005
Try this
=========

ls -lt `find ./ -name "EL*" -print`

Displays all the files starts with EL


Thanks
Ashok
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find results

Hi, how can I get only useful results from find / -size 10000000 without the "Permissions denied" files ? tks C (5 Replies)
Discussion started by: Carmen123
5 Replies

2. Shell Programming and Scripting

HELP: I need to sort a text file in an uncommon manner, can't get desired results

Hi All I have a flat text file. Each line in it contains a "/full path/filename". The last three columns are predictable, but directory depth of each line varies. I want to sort on the last three columns, starting from the last, 2nd last and 3rd last. In that order. The last three columns... (6 Replies)
Discussion started by: JakeKatz
6 Replies

3. Shell Programming and Scripting

Help with sort folder results

Here is the code, but the list is not sorted properly (alphabetically)? <?php function folderlist(){ $startdir = './'; $ignoredDirectory = '.'; $ignoredDirectory = '..'; if (is_dir($startdir)){ if ($dh = opendir($startdir)){ while (($folder = readdir($dh)) !== false){ if... (0 Replies)
Discussion started by: mrlayance
0 Replies

4. UNIX for Dummies Questions & Answers

sort find results

Hi, I have a problem with a shell script. The script should find all .cpp and .h files and list them. With: for file in `find $src -name '*.h' -o -name '*.cpp' it gives out this: H:\FileList\A\E\F\G\newCppFile.cpp H:\FileList\header01.h H:\FileList\B\nextCppFile.cpp ... (4 Replies)
Discussion started by: shellBeginner75
4 Replies

5. UNIX for Dummies Questions & Answers

LINUX SORT command chops results

I am trying to sort a file . The file looks like this: DDFF 2 /ztpfrepos/pgr/load DDFQ 2 /ztpfrepos/pgr/load DDFX 2 /ztpfrepos/pgr/load DDUA 2 /ztpfrepos/pgr/load My command: sort -k1 /home/c153507/Bin/OPL1.txt -o /home/c153507/Bin/OPL1.txt The results are OK except for one line where... (4 Replies)
Discussion started by: Yahalom
4 Replies

6. UNIX for Dummies Questions & Answers

How to do ls -l on results of grep and find?

Hi, Am running the command below to search for files that contains a certain string. grep -il "shutdown" `find . -type f -mtime -1 -print` | grep "^./scripts/active" How do I get it to do a ls -l on the list of files? I tried doing ls -l `grep -il "shutdown" `find . -type f -mtime -1... (5 Replies)
Discussion started by: newbie_01
5 Replies

7. UNIX for Beginners Questions & Answers

Weird 'find' results

Hello and thanks in advance for any help anyone can offer me I'm trying to learn the find command and thought I was understanding it... Apparently I was wrong. I was doing compound searches and I started getting weird results with the -size test. I was trying to do a search on a 1G file owned by... (14 Replies)
Discussion started by: bodisha
14 Replies

8. UNIX for Beginners Questions & Answers

Strange sort -r results

Hi Folks - I have this file that looks like this: outbox/logs/Client_1042.log outbox/logs/Client_941.log outbox/logs/Client_942.log outbox/logs/Client_943.log outbox/logs/Client_944.log And this is my code: #!/bin/bash _OUTBOX_BIN="outbox/logs/" _NAME="Client" _TEMP="temp.txt"... (9 Replies)
Discussion started by: SIMMS7400
9 Replies

9. UNIX for Beginners Questions & Answers

Inconsistent results using sort function

Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Discussion started by: aberg
6 Replies

10. UNIX for Beginners Questions & Answers

Strange results from 'strings | sort'

Using the 'strings' command and piping the result to 'sort' is producing strange results. I get block of lines that begin with asterisks, then a block that begins with some text, then more lines that begin with asterisks. The actual content is correct - lines beginning with asterisks is the... (5 Replies)
Discussion started by: edstevens
5 Replies
finger(1)						      General Commands Manual							 finger(1)

Name
       finger - print user finger information

Syntax
       finger [options] [name...]

Description
       By  default,  lists  the login name, full name, terminal name and write status, idle time, login time, and office location and phone number
       for each current ULTRIX user.  Terminal write status is noted as an asterisk (*) before the terminal name if write  permission  is  denied.
       Idle  time is given in minutes if the listing shows a single integer, hours and minutes if a colon (:) is present, or days and hours if a d
       is present.

       A longer format also exists and is used by whenever a list of people's names is given.  (Account names as well as first and last  names	of
       users  are  accepted.) This format is multi-line, and includes all the information described above as well as the user's home directory and
       login shell.  Additionally, it displays the information contained in the files .plan and .project, both of which are located in the  user's
       home directory.	If no list is given, all the people currently logged in are shown.

       The  command  may  be used to look up users on a remote machine.  The format is to specify the user as user@host.  If the user name is left
       off, the standard format listing is provided on the remote machine.

Options
       -b   Displays a briefer long form list of users.

       -f   Disables printing of headers for short and quick outputs.

       -h   Suppresses printing of the .project file.

       -i   Displays list of users with idle times.

       -l   Displays output in long format.

       -m   Matches arguments only on user name.

       -p   Suppresses printing of the .plan file.

       -q   Displays list of users.

       -s   Displays output in short format.

       -w   Displays narrow short format of specified users.

Restrictions
       Only the first line of the .project file is printed.

       The user's or file cannot be a link to another file.  If either of these files is something other than a regular file, it will be ignored.

Files
       Who file

       User information

       Last login times

       Plans

       Projects

See Also
       chfn(1), w(1), who(1), fingerd(8c)

																	 finger(1)
All times are GMT -4. The time now is 02:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy