10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All ,
I am having an input file like this
Input file
7 sks/jsjssj/ddjd/hjdjd/hdhd/Q 10 0.5 13
dkdkd/djdjd/djdjd/djd/QB 01 0.5
ldld/dkd/jdf/fjfjf/fjf/Q 0.5
10 sjs/jsdd/djdkd/dhd/Q 01 0.5 21
kdkd/djdd/djdd/jdd/djd/QB 01 0.5
dkdld/djdjd/djd/Q 01 0.5
... (9 Replies)
Discussion started by: kshitij
9 Replies
2. Shell Programming and Scripting
Hi,
i need to sort content of files based on a specific value. An example as below.
Input1.txt
Col_1
SW_MH2_ST
ST_F72_9S
SW_MH3_S6
Col_2
SW_MH3_AS7
ST_S15_9CH
SW_MH3_AS8
SW_MH3_ST
Col_3
ST_M93_SZ
ST_C16_TC (12 Replies)
Discussion started by: redse171
12 Replies
3. Shell Programming and Scripting
I have a file which has the following data :-
how can I sort the data in descending order .
My files may have the first column with 1 to 10000 numbers .I need to arrange them in descending order .
Thanks (2 Replies)
Discussion started by: lazydev
2 Replies
4. Shell Programming and Scripting
Hi,
I am having trouble sorting one file based on another file. I tried the grep -f function and failed. Basically what I have is two files that look like this:
File 1 (the list)
gh
aba
for
hmm
File 2 ( the file that needs to be sorted)
aba 2 4 6 7
for 2 4 7 4... (4 Replies)
Discussion started by: phil_heath
4 Replies
5. Shell Programming and Scripting
Hi All,
When i give ls -ltr my filenames looks like this:
Filename Pattern: Abc_Def_mmddyyyyHHmm.csv
$ ls -ltr
Jun 05 04:30 Abc_Def_060520111245.csv
Jun 05 08:40 Abc_Def_071220121458.csv
Jun 06 03:30 Abc_Def_071220111458.csv
Jun 06 04:25 Abc_Def_060620110439.csv
Jun 07 04:37... (12 Replies)
Discussion started by: HemaV
12 Replies
6. Shell Programming and Scripting
Hi Everyone,
# cat 1.pl
#!/usr/bin/perl
use strict;
use warnings;
my @test=("a","b","c","d");
print @test;
# ./1.pl
abcd
if i want to sort the @test, based on my own partten, the output is "cbda", how to do? as i know perl sort i can use cmp and <=>, but how to do with my own... (7 Replies)
Discussion started by: jimmy_y
7 Replies
7. Shell Programming and Scripting
Hi,
My input file is
$cat samp
1 siva
1 raja
2 siva
1 siva
2 raja
4 venkat
i want sort this name wise...alos need to remove duplicate lines.
i am using
cat samp|awk '{print $2,$1}'|sort -u
it showing
raja 1 (3 Replies)
Discussion started by: rsivasan
3 Replies
8. Shell Programming and Scripting
Hi,
Is there any way to sort a file in cshell by sort command, sorting it by multiple fields, like to sort it first by the second column and then by the first column.
Thanks forhead (1 Reply)
Discussion started by: Takeeshe
1 Replies
9. Shell Programming and Scripting
I'm not familiar with find.
If i use find in a certain directory i want it to show based on hierarchy.
find . type d
fol1
fol1/subfol1
fol1/subfol1/subfol1
fol2
fol2/subfol2
i want it to show like this
fol1/subfol1/subfol1
fol1/subfol1
fol1
fol2/subfol2
fol2
do i need to use... (5 Replies)
Discussion started by: ryandegreat25
5 Replies
10. IP Networking
Due to the massive Upload speeds killing .... or overstressing our schools network...... my school has blocked port 6969 (the most common BitTorrent port). So I cant connect to the tracker anymore, in other words no more downloading from school :(
Does anyone know how I can get around the ports... (1 Reply)
Discussion started by: PenguinDevil
1 Replies
RUPTIME(1) BSD General Commands Manual RUPTIME(1)
NAME
ruptime -- show host status of local machines
SYNOPSIS
ruptime [-alrtu]
DESCRIPTION
ruptime gives a status line like uptime(1) for each machine on the local network; these are formed from packets broadcast by each host on the
network via the rwhod(8) daemon. The default broadcast time by the hosts is every three minutes.
Machines for which no status report has been received for 11 minutes are shown as being down.
The options are as follows:
-a Users idle an hour or more are not counted unless the -a flag is given.
-l Sort by load average.
-r Reverses the sort order.
-t Sort by uptime.
-u Sort by number of users.
The default listing is sorted by host name.
FILES
/var/rwho/whod.* data files
SEE ALSO
rup(1), rwho(1), uptime(1), rwhod(8)
HISTORY
ruptime appeared in 4.2BSD.
BSD
August 9, 2005 BSD