Where is my sorted file?

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.
stummjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd MummertCommented:


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?

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stummjAuthor Commented:
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
0
stummjAuthor Commented:
Re ran it and it worked perfectly!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.