02-19-2006
You should really search the forums before asking any questions. Search on keywords such as sort. If you had searched, you would have found
this and several other posts.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies
2. Shell Programming and Scripting
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 Replies)
Discussion started by: scarfake
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am using the command below to list the 10 biggest directories and files in my present directory
du -hs * | sort +0 | tail -10
the output is
8K disk-space
16K rish
32K WINDOWS
48K tests
104K imgvdEwLa.jpg
168K 020204_aerosmith_1024768.jdk
3.2M Acdc -... (4 Replies)
Discussion started by: the.noob
4 Replies
4. Shell Programming and Scripting
Can some one help in sorting the attached file.
I used cmd: sort -r jar1.txt -o sortedjar.txt , but it didnt work.
Thanks for your help in Advance. (6 Replies)
Discussion started by: sawyer
6 Replies
5. UNIX for Advanced & Expert Users
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies
6. Shell Programming and Scripting
How do you combine these ls commands so that I can have the outputs by name, time stamp, and size?
ls -al |grep name_of_file
ls -al | sort +4nr
ls -l -t
Please advise. (4 Replies)
Discussion started by: Daniel Gate
4 Replies
7. Shell Programming and Scripting
fuser -OdV /temp
This command returns the output below;
inode=132 size=10871 fd=2 5046330
inode=570 size=292 fd=1 5439528
inode=259 size=2669 fd=1 5570758
inode=759 size=255 fd=1 6226124
inode=636 size=1035 fd=1 ... (8 Replies)
Discussion started by: Daniel Gate
8 Replies
8. Shell Programming and Scripting
Hello,
I'm trying to find top 5(highest) directories by size. I did something like du -sh * > $file
Where I can get all the size with respect to directories, but I need only top 5 directory from the file. How can I sort by size in the file and print top 5 sizes with the directory name???
... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
9. UNIX for Dummies Questions & Answers
-rw-r--r-- 1 oracle oinstall 4 Jan 17 16:23 a
-rw-r--r-- 1 oracle oinstall 212 Jan 17 17:51 amar
-rw-r--r-- 1 oracle oinstall 32 Jan 17 17:30 b
-rw-r--r-- 1 oracle oinstall 246 Jan 17 15:40 h1.tar.gz
Hi,
I want combination of linux command to sort out the line which has 32k size.
... (5 Replies)
Discussion started by: karthick nath
5 Replies
10. UNIX for Beginners Questions & Answers
I have the below input data in a file and need to get the output as mentioned below. Need to sort the data by size(Asc/des)/by subdirectory
Below is the input which is there in a file:
120 /root/path2/part-00000-d3700305-428d-4b13-8161-42051f4ac5ed-c000.json
532 ... (3 Replies)
Discussion started by: ajarramuk
3 Replies
LEARN ABOUT DEBIAN
opensearch-discover
OPENSEARCH-DISCOVER(1) User Contributed Perl Documentation OPENSEARCH-DISCOVER(1)
NAME
opensearch-discover - Find an OpenSearch link from a given URL.
SYNOPSIS
opensearch-discover [-q] [-v] [-t TITLE] [-1|-a] [-h] [URL]
DESCRIPTION
Loads the given URL, searches it for a link to an OpenSearch description URL, and prints that URL.
OPTIONS
-q, --quiet
Give no output on errors. In this case, consult the exit code to determine errors (See "DIAGNOSTICS").
-v, --verbose
Verbose: display titles with links. Combine with -a to see all available searches
-t TITLE, --title=TITLE
Only display links matching TITLE, a case-insensitive perl regular expression. For example, -t book would match Book Search, and -t
b.*k would match Book Search or Baby Springbok.
-1, --first
Only display first (matching) link. This is the default.
-a, --all
Display all (matching) links.
-h, --help
Display a short help message.
DIAGNOSTICS
On success, prints the address of the OpenSearch description file and returns 0.
If it cannot load the given URL, it returns 1.
If the given URL does not contain a link to an OpenSearch description file, it returns 2.
If required perl modules are missing, it returns 3.
DEPENDENCIES
Requires modules from libwww-perl and HTML::Parser (Debian package libhtml-parser-perl).
BUGS
None known. Please report any found to ianb@erislabs.net
SEE ALSO
opensearch(1), opensearch-genquery(1), surfraw(1), WWW::OpenSearch(3pm), <http://www.opensearch.org/>
AUTHOR
Ian Beckwith <ianb@erislabs.net>
COPYRIGHT AND LICENSE
Copyright 2006 Ian Beckwith <ianb@erislabs.net>
Licensed under the same terms as surfraw.
perl v5.12.4 2011-07-12 OPENSEARCH-DISCOVER(1)