Sponsored Content
Full Discussion: sort -reverse order
Top Forums UNIX for Dummies Questions & Answers sort -reverse order Post 302239200 by vbe on Tuesday 23rd of September 2008 05:24:30 AM
Old 09-23-2008
Quote:
Originally Posted by sivakumar.rj
i used sort +0.1 -0.14 -r +0.28 -0.33. It reverses the whole records.
Of course, thats the idea: sorting is displaying using a sort criteria, not modifying records...
in your case sorting in reverse order the 4th field:

Code:
 $ sort -r -k 4,4 00aa 
C 1100002814901 1 1100002809101 060919
C 1100002814801 1 1100002809001 070919
C 1100002814701 1 1100002808901 050919

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using sed and regex to reverse order???

so i have been trying to learn how to manipulate text on my own and have gotten stumped... let's say i have a text file that says (highly simplified): people ordinary How would swap the order of the words.. I know i need to use sed and some kind of back reference but cannot make it... (2 Replies)
Discussion started by: urtherhoda
2 Replies

2. Shell Programming and Scripting

sort a file in reverse order

I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last.. eg. Sample file 1 h a f 8 6 After sort should look like 6 8 f a h 1 (11 Replies)
Discussion started by: frustrated1
11 Replies

3. Shell Programming and Scripting

How to get fields in reverse order?

i am having lines like below seperated by "|" (pipe) abc|xyz 123|567 i have to get the above in reverse order xyz|abc 567|123 Pls help (5 Replies)
Discussion started by: suryanarayana
5 Replies

4. UNIX for Dummies Questions & Answers

How to print arguments in reverse order?

Hey all, How do I make a script print its arguments in reverse order? Thanks (5 Replies)
Discussion started by: unclepickle1
5 Replies

5. UNIX for Dummies Questions & Answers

printing fields in reverse order

command/script(apart from awk) to print the fields in reverse order that is last field has to come first and so on and first field has to go last Input store-id date sale ............. ............. ... (3 Replies)
Discussion started by: tsurendra
3 Replies

6. Shell Programming and Scripting

print in reverse order

Hi, I want to print the item in reverse order such that the output would look like 00 50 50 23 40 22 02 96 Below is the input: 00 05 05 32 04 22 20 69 Video tutorial on how to use code tags in The UNIX and Linux Forums. (5 Replies)
Discussion started by: reignangel2003
5 Replies

7. Shell Programming and Scripting

Sorting strings in reverse order

Hello, I have a large database of words and would like them sorted in reverse order i.e. from the end up. An example will make this clear: I have tried to write a program in Perl which basically takes the string from the end and tries to sort from that end but it does not seem... (5 Replies)
Discussion started by: gimley
5 Replies

8. UNIX for Dummies Questions & Answers

[Solved] Reverse the order of a list of file names (but not sort them alphabetically or numerically)

Hello all, I have a list of file names in a text document where each file name consists of 4 letters and 3 numbers (for example MACR119). There are 48 file names in the document (they are not in alphabetical or numerical order). I would like to reorder the list of names so that the 48th name is... (3 Replies)
Discussion started by: MDeBiasse
3 Replies

9. UNIX for Beginners Questions & Answers

Issues with sorting in reverse order

I have a unix script that outputs a summary file to the mac desktop. The file is called summary.txt I am trying to configure such so that the summary.txt file lists the content contained within such in reverse sort order. I have used sort -r but it does not seem to work. I would be... (8 Replies)
Discussion started by: Braveheart
8 Replies
reverse-depends(1)					      General Commands Manual						reverse-depends(1)

NAME
reverse-depends - List the reverse-dependencies (or build-dependencies) of a package SYNOPSIS
reverse-depends [options] package DESCRIPTION
List reverse-dependencies (or build-dependencies) of package. If the package name is prefixed with src: then the reverse-dependencies of all the binary packages that the specified source package builds will be listed. OPTIONS
-r RELEASE, --release=RELEASE Query dependencies in RELEASE. Default: current development release. -R, --without-recommends Only consider Depends relationships, not Recommends. -s, --with-suggests Also consider Suggests relationships. -b, --build-depends Query build dependencies. Synonym for --arch=source. -a ARCH, --arch=ARCH Query dependencies in ARCH. Besides valid architecture names, the special values any and source may be used. any displays all reverse dependencies, the union across all architecture. source displays build dependencies. Default: any. -c COMPONENT, --component=COMPONENT Only consider reverse-dependencies in COMPONENT. Can be specified multiple times. Default: all components. -l, --list Display a simple, machine-readable list. -u URL, --service-url=URL Reverse Dependencies web-service URL. Default: UbuntuWire's service at http://qa.ubuntuwire.org/rdepends/. -h, --help Display a help message and exit EXAMPLES
All reverse dependencies of source package bash: reverse-depends src:bash AUTHORS
reverse-depends and this manpage were written by Stefano Rivera <stefanor@ubuntu.com>. Both are released under the terms of the ISC License. ubuntu-dev-tools November 2011 reverse-depends(1)
All times are GMT -4. The time now is 04:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy