10-15-2009
Are you trying to write into the file directly that you are currently sorting?
Anyway please post a short excerpt of the input and desired output if help on sorting itself is needed too.
---------- Post updated at 10:18 AM ---------- Previous update was at 10:18 AM ----------
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. Red Hat
All,
I'm getting the following error while I try to register the server to connect the redhat network for the updates.
rhn_register updateLoginInfo() login info
rhn_register A socket error occurred: (111, 'Connection refused'), attempt #1
rhn_register A socket error occurred: (111,... (6 Replies)
Discussion started by: s_linux
6 Replies
2. Shell Programming and Scripting
hi folk i need your help to find one logic....
i have error log same as any other error logs which get populated by no of events and errors...
but i need to grep the last occured errors.. which cant be duplicate.
here is my script.
========================
#!/usr/bin/ksh
grep -i... (3 Replies)
Discussion started by: tapia
3 Replies
3. UNIX for Dummies Questions & Answers
Looking for help for sort, I learned that for sorting numbers I use:
sort -n
but it seems that that is not enough when you have numbers like 0.2000E+7 for example, sort -n will not worry about the E+7 part, and will just sort the numbers like 0.2000.
Exapmle:
cat example.txt
.91000E+07... (9 Replies)
Discussion started by: cosmologist
9 Replies
4. Shell Programming and Scripting
SOLVED : (17 Replies)
Discussion started by: Glitch100
17 Replies
5. UNIX for Dummies Questions & Answers
Dear Friends,
I am sorting the file which contain 55Lakhs of records while Sorting i am facing issues
Sort :0653-657 Write Error occured while merging
Could you please any one tell me how to overcome this problem
Thanks in advance (5 Replies)
Discussion started by: i150371485
5 Replies
6. Red Hat
I have RHEL5.3 that is with the Platform Cluster Manger PCM installation. on master node. Unfortunately some files were deleted from the /var directory and then the postgresql service couldn't start. I have deleted, rm -rf /var/lib/pgsql/data and started the service again now the service is running... (1 Reply)
Discussion started by: ahsanpmd
1 Replies
7. Solaris
Hi all,
Error occurred while making the net-snmp-5.4.4 on Solaris 5.10 version.
Environment
- Solaris 5.10-x86
- Net-SNMP-5.4.4.tar.gz
- Path (/etc/profile)
PATH=/usr/local/bin:$PATH
export PATH
LD_LIBRARY_PATHUSR=/usr/ccs/bin:
export LD_LIBRARY_PATH
Error01 - summary
***... (3 Replies)
Discussion started by: ziosnim
3 Replies
8. OS X (Apple)
Hey everybody,
I'm trying to sort scientific numbers in a descending order using the command
sort -gr <file>.
It works fine on a Linux-Server, but doesn't on my macbook pro with OS X 10.10.3 (Yosemite).
I tried to sort the following:
6.38e-10
6.38e-10
1.80e-11
1.00e-10
1.48e-12
And... (9 Replies)
Discussion started by: plebs
9 Replies
9. AIX
Hi,
When i am trying to read data from tape cassette its giving below error:
tar tvf /dev/rmt0
"tar: 0511-193 An error occurred while reading from the media.
A system call received a parameter that is not valid."
OS: - AIX 6.1
Tape Library : - IBM TS3100
Tape Cassette : - Ultrium LTO... (1 Reply)
Discussion started by: arunmistry
1 Replies
10. Shell Programming and Scripting
Hi ,
I was invoking a sh file using the nohup command. But while invoking, I received a below error.
Error occurred during initialization of VM
Unable to load native library: /u01/libjava.so: cannot open shared object file: No such file or directory
.
Could you please help out.
Regards,... (2 Replies)
Discussion started by: Kamal1108
2 Replies
LEARN ABOUT NETBSD
set_color
set_color(1) fish set_color(1)
NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)