Sort a file 1.0 Python script

SPONSORED LINKS

    Specification

  • Version: 1.0
  • File size: 0 KB
  • File name: 440612
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Python
  • Price:Other Free / Open So
  • Company: Phil Robare (View more)

Sort a file 1.0 script description:



Sort a file 1.0 is a Python script for File Management scripts design by Phil Robare. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Sort a file script will sort a file named on the command line and write the sorted lines to standard output.

Publisher review:
Sort a file script will sort a file named on the command line and write the sorted lines to standard output. This simple (4 lines) script will sort a file named on the command line and write the sorted lines to standard output. Sorting a nes to st common task for scripting languages. Using the fileinput module and the builtin capabilities of lists it can be done easily in Python.An issue with the code as presented is that it doesn't check the filename that the user gives on the command line. If the name cannot be opened an IO error is thrown and you get an ugly traceback. It might also be more generally useful if the user were allowed to input a wildcard filename and the glob module were used to expand the wildcard to a list of files to be sorted. This would bring up the question of whether the output should be a sort of the concatenation of the files or whether each file should be sorted seperately. The point of this recipe is to show a simple task done quickly so I have left these elaborations off.
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

Samsung launched the Premium Music Hub

Samsung launched the Premium Music Hub

Samsung finally gives consumers multiple audio streaming countries promised a while. Premium Music Hub allows users access to over 19 million songs, along with other useful functions.

Posted on: 30 May 2012 13:02 by A. Brown

This could be the first photos of iPhone 5

This could be the first photos of iPhone 5

IPhone\'s case came online in a few pictures that confirm rumors of a larger screen. This could be the first photos of the next iPhone, but nothing is really safe to Apple announcement.

Posted on: 30 May 2012 12:58 by A. Brown

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

SPREAD THE WORD

User Rating

Sort a file
Rating: 1.0 out of 5
Based on 1 ratings. 1 user reviews.

  • Currently 1.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5