Where is my sorted file?

Posted on 2009-05-26
Medium Priority
Last Modified: 2012-05-07
I left a unix processing running overnight to sort a large file.
I used the command sort <filename> -o <filename2>

The process has stopped running, however filename2 isnt to be found!

Did I need to specify a location for it? I assumed it would be placed in the "current" directory.
Question by:stummj
  • 2
LVL 11

Accepted Solution

Todd Mummert earned 2000 total points
ID: 24480197

Your assumptions are correct, it would put it in the current directory if you specified a simple filename.

The same effect would happen with

sort filename >outputfile

I don't know why you wouldn't have an output file, unless it was deleted since then...  Was it placed in a temp directory that might be cleaned up via cron job or reboot?


Author Comment

ID: 24480209
Yeh I guess thats what must have happened. I've rerun it now and (belt and braces) included the path in the output filename too so we'll see what happens. Thank you

Author Closing Comment

ID: 31585644
Re ran it and it worked perfectly!

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Utilizing an array to gracefully append to a list of EmailAddresses
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question