Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to sort files in directory numerically? Post 303043472 by Peasant on Wednesday 29th of January 2020 10:47:02 AM
Old 01-29-2020
Are there any attempts or ideas from your side, some code you gave a shot ?

Regards
Peasant.
 

10 More Discussions You Might Find Interesting

1. AIX

loop through the directory for files and sort by date and process the first file

hello i have a requirement where i have a direcotry in which i get files in the format STOCKS.20080114.dat STOCKS.20080115.dat STOCKS.20080117.dat STOCKS.20080118.dat i need to loop through the directory and sort by create date descending order and i need to process the first file. ... (1 Reply)
Discussion started by: dsdev_123
1 Replies

2. UNIX for Dummies Questions & Answers

Sort all files in a directory retaining originals

Hi, I need to sort all the files in a directory whilst retaining the originals. So if in the directory I have: File1 File2 File3 I want to sort these files so that I would have: File1 File1.sort File2 File2.sort File3 File3.sort where I have added the .sort extension to show... (4 Replies)
Discussion started by: ledgie
4 Replies

3. UNIX for Dummies Questions & Answers

Sort file alphabetically AND numerically

Hi all. I have 2 files like this: f1 A 10 B 80 C 9 f2 A 11 B 700 C 10 What I want is the concatenation of the two files sorted by name (alphabetically) and size (numerically), so the result should be like this: F3 (cat f1 f2 sorted) A 10 A 11 B 80 B 700 (2 Replies)
Discussion started by: mrodrig
2 Replies

4. Shell Programming and Scripting

How to sort a set of files by date in a directory?

hi there, I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Discussion started by: alexf
8 Replies

5. Shell Programming and Scripting

Numerically sort problem for a long list of file name

I got a long list of file name. My input: data_1.txt data_2.txt data_3.txt data_10.txt data_21.txt data_12.txt data_4.txt My desired output: data_1.txt data_2.txt data_3.txt data_4.txt data_10.txt data_12.txt data_21.txt Does anybody got idea how to archive it? (11 Replies)
Discussion started by: patrick87
11 Replies

6. UNIX for Dummies Questions & Answers

Sort 2 columns numerically

Hi, A basic query. In the example file below, I want to sort by column 1 and then by column 2 numerically. I have tried sort -k2n,1 file1 but while this sorts the columns in the correct order, it does not sort column 2 numerically. Any help would be much appreciated. Also, if you have time to... (3 Replies)
Discussion started by: auburn
3 Replies

7. Shell Programming and Scripting

Sort numerically a non numerical

Hello, I have this sample data: 01 * * * * 01 * * * * 01 * * * * 01 * * * * 01 0 * * * 01 0 * * * 01 0 * * * 01 0 * * * 02 * * * 0 02 * * * 0 02 * * * 6 02 * * * 6 02 0 * * 1 02 0 * * 1 02 0 * * 2 02 0 * * 2 02 0 * * 3 (3 Replies)
Discussion started by: gio001
3 Replies

8. Shell Programming and Scripting

Sort alphabetically, then numerically

Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
Discussion started by: 1cor29
5 Replies

9. UNIX for Dummies Questions & Answers

Redirecting tmp files of SORT into different directory

Hey Guys, I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

10. 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
Titanion(6)															       Titanion(6)

NAME
titanion - strike down super high-velocity swooping insects DESCRIPTION
Strike down super high-velocity swooping insects. Fixed shooter in the good old days, 'Titanion'. Titanion is an abstract shooter game. While we fire with one button, the other one acts as a tractor ray to attract the enemies and take them to the combat line. The game in itself is quite simple, but with such graphics and playability that it's a great experience to play. OPTIONS
These command-line options are available: -brightness n Set the brightness of the screen. (n = 0 - 100, default = 100) -res x y Set the screen resolution to (x, y). (default = 640, 480) -nosound Stop the sound. -bgmvol n Set the volume of the background music. (n = 0 - 128, default = 100) -sevol n Set the volume of the sound effects. (n = 0 - 128, default = 100) -window Run in windowed mode. -fullscreen Run in full-screen mode. -exchange Exchange the shot button and the beam button. -trail Add a trail effect to enemies. -noslowdown Stop an intentional slowdown. -randomized Attack patterns of enemies randomly change with each play. USAGE
* How to start At the title screen, you can select a game mode (CLASSIC, BASIC, MODERN) with the up/down key. Push a shot button to start a game. CLASSIC mode - Sporadic firing. - Use a capture beam to make a friend of an enemy. - When your ship collides against an enemy, your ship is destroyed. BASIC mode - Middle course. - You can use the capture beam anytime. - When your ship collides against an enemy, your ship is knocked away. MODERN mode - Bullet hell. - Use a provocation beam to force an enemy to fire more bullets and earn a bullet multiplier bonus. - When your ship collides against an enemy, nothing happens. Your ship and an enemy go through each other. * How to play Avoid incoming bullets and strike down all enemies. Controls: Move Arrow / Num / [WASD] / [IJKL] / Stick Shot [Z][L-Ctrl][R-Ctrl][.] / Button 1, 3, 5, 7, 9, 11 Hold down a button to fire automatically. + MODERN mode - Hold a provocation beam button at the same time to slow down speed of your ship and fire intensively. Capture beam / Provocation beam [X][L-Alt][R-Alt][L-Shift][R-Shift][/][Return] / Button 2, 4, 6, 8, 10, 12 + CLASSIC mode - Capture beam You can capture enemies with the capture beam. To fire the capture beam, a capture beam energy (displayed in the left panel) should be full. The capture beam energy increased when you destroy an enemy. Captured enemies are lined up beside the player and counterattack to other enemies. Your ship is invincible when you are firing the capture beam. + BASIC mode - Capture beam You can use the capture beam anytime, but your ship isn't invincible while firing. + MODERN mode - Provocation beam The provocation beam forces an enemy to fire more bullets and you can earn more bullet multiplier bonus. You have to release the shot button to fire the provocation beam. Pause [P] Exit / Return to the title [ESC] Multiplier: A score multiplier is displayed in the upper right. It increases when you destroy a enemy and decreases slowly when the enemy is on the screen. Proximity multiplier: BASIC mode When you destroy an enemy at close range, you can get a proximity multiplier (Max x16). Bullet multiplier: MODERN mode When you destroy a pink midsize enemy, bullets flying side-by-side are changed into a bullet multiplier in a chain reaction. Use the provocation beam to the midsize enemy to get higher bonus. Extra ship: CLASSIC mode You earn an extra ship every 100,000 points. BASIC mode You earn an extra ship every 1,000,000 points. MODERN mode A score to earn the next extra ship is displayed in the upper left. SEE ALSO
You can find more about the game on its homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/ttn_e.html AUTHOR
This game has been written by Kenta Cho <cs8k-cyu@asahi-net.or.jp> Titanion(6)
All times are GMT -4. The time now is 11:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy