02-22-2012
sort command in centos linux os
Iam working on centos os. Iam not able to sort records without option
Please help me out
Jayaprakash B.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello! Can anybody explain in laymen terms what the (+) option in the sort command for Linux does? Please.
Thanks in advance!!:D (1 Reply)
Discussion started by: itisijayare
1 Replies
2. Shell Programming and Scripting
Hi to all.
I'm trying to sort this with the Unix command sort.
user1:12345678:3.5:2.5:8:1:2:3
user2:12345679:4.5:3.5:8:1:3:2
user3:12345687:5.5:2.5:6:1:3:2
user4:12345670:5.5:2.5:5:3:2:1
user5:12345671:2.5:5.5:7:2:3:1
I need to get this:
user3:12345687:5.5:2.5:6:1:3:2... (7 Replies)
Discussion started by: daniel.gbaena
7 Replies
3. UNIX for Dummies Questions & Answers
cat a
.a
ba
.b
bb
.c
bc
sort a
.a
.b
ba
bb
bc
.c
NOTE: .a and .b appears before ba and bb, where as .c appears after bc.
In general (3 Replies)
Discussion started by: ajb
3 Replies
4. Linux
Iam working in centos linux operating system.
Consider the following file by name emp
1008 Vijay 40
1009 Rekha 34
1010 Shreyas 40
1011 Sanjay 40
sort command is not working. I gave sort emp
The command is not working
Can somebody send the options under centos linux (1 Reply)
Discussion started by: jpachar
1 Replies
5. UNIX for Dummies Questions & Answers
I am trying to sort a file . The file looks like this:
DDFF 2 /ztpfrepos/pgr/load
DDFQ 2 /ztpfrepos/pgr/load
DDFX 2 /ztpfrepos/pgr/load
DDUA 2 /ztpfrepos/pgr/load
My command:
sort -k1 /home/c153507/Bin/OPL1.txt -o /home/c153507/Bin/OPL1.txt
The results are OK except for one line where... (4 Replies)
Discussion started by: Yahalom
4 Replies
6. Red Hat
Hi everyone ...
( Linux Cent OS ) i cant login as root user in my lab machine ... i did give correct root and root passwd ..but it showing Authentication Failed ...
plz help me (0 Replies)
Discussion started by: coolboys
0 Replies
7. UNIX for Dummies Questions & Answers
HI Expert, :confused:
CAn some1 guide me how to run a program automatically whenever the PC/Server is rebooted ?
Im not sure where to start from. PLease refer to the pic attached and do help me. Thanks in advance
---------------------------------------------------- (11 Replies)
Discussion started by: crazydude80
11 Replies
8. Homework & Coursework Questions
This is the question being asked: (Sort your data file by last name first, then by the first name second - save as first_last.) I am not quite sure of the type of sort I am being asked to perform. I have read the man pages of the sort command a few times, as well as searching online for possible... (10 Replies)
Discussion started by: demet8
10 Replies
9. Emergency UNIX and Linux Support
I need to setup a proxy that will sit in front of a websockets server and proxy websockets communication both to and from the server. There will only be one specific client trying to access this server using the websockets protocol. We can configure the proxy settings for port and IP on the... (3 Replies)
Discussion started by: glev2005
3 Replies
10. Red Hat
HI,
I have a Centos linux box and there is interface connect to internet.
I stop the iptables in this box .
After a few day , I find the linux box have been hacked and install some perl script into the box .
Could anyone tell me how the hacker can login into the centos box without knowing... (1 Reply)
Discussion started by: chuikingman
1 Replies
LOOK(1) User Commands LOOK(1)
NAME
look - display lines beginning with a given string
SYNOPSIS
look [options] string [file]
DESCRIPTION
The look utility displays any lines in file which contain string. As look performs a binary search, the lines in file must be sorted
(where sort(1) got the same options -d and/or -f that look is invoked with).
If file is not specified, the file /usr/share/dict/words is used, only alphanumeric characters are compared and the case of alphabetic
characters is ignored.
OPTIONS
-a, --alternative
Use the alternative dictionary file.
-d, --alphanum
Use normal dictionary character set and order, i.e. only alphanumeric characters are compared. (This is on by default if no file is
specified.)
-f, --ignore-case
Ignore the case of alphabetic characters. (This is on by default if no file is specified.)
-t, --terminate character
Specify a string termination character, i.e. only the characters in string up to and including the first occurrence of character are
compared.
-h, --help
Display help text and exit.
-V, --version
Output version information and exit.
The look utility exits 0 if one or more lines were found and displayed, 1 if no lines were found, and >1 if an error occurred.
EXAMPLE
sort -d /etc/passwd -o /tmp/look.dict
look -t: root:foobar /tmp/look.dict
FILES
/usr/share/dict/words
the dictionary
/usr/share/dict/web2
the alternative dictionary
SEE ALSO
grep(1), sort(1)
COMPATIBILITY
The original manual page stated that tabs and blank characters participated in comparisons when the alphanum option was specified. This
was incorrect, and the current man page matches the historic implementation.
HISTORY
The look utility appeared in Version 7 AT&T Unix.
AVAILABILITY
The look command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 LOOK(1)