please help me with this


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting please help me with this
# 1  
Old 10-16-2011
please help me with this

Code:
sort -T /fns/$REGION_ID/r/spool -y -k 1.21d,1.25d $data/file/SH0000DEP -o $data/file/SH0000DEP_sort 2>$sysout/shsplitdep.log

Moderator's Comments:
Mod Comment Please read the forum rules. You must use a descriptive subject text to post here. Your subject "please help me with this" is not useful to anyone. Everyone here is looking for help, or giving help to someone. Write in a professional way and use a descriptive subject text.
# 2  
Old 10-16-2011
what 'help' do you want ?.

additionally, give the output verbatim generated by running the command on your system pls.

a rough breakdown of your command line ....

sort
-T /fns/$REGION_ID/r/spool # use this directory for any temporary files
-y # obsolete, use -S <amount of memory in kb>
-k 1.21d,1.25d $data/file/SH0000DEP # sort based on field 21 thru 25
-o $data/file/SH0000DEP_sort # put the results into this file
2>$sysout/shsplitdep.log # redirect errors normally posted to stderr to this file

munkeHoller
# 3  
Old 10-18-2011
Thanks a lot........
but plz tell why -T is used ..........why we require temporary files or is it optional.
# 4  
Old 10-18-2011
sort needs somewhere to create work file(s) used during its processing, these are usually in /tmp or $TMPDIR, but the option is given to the user to select a 'scratch' area .... so, its optional
This User Gave Thanks to munkeHoller For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question