11-28-2016
man ls reveals that there is a -r option. Alternatively you might want to look into the find command.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I a file with log entries... I want to sort it so that the last line in the file is first and the first line is last..
eg.
Sample file
1
h
a
f
8
6
After sort should look like
6
8
f
a
h
1 (11 Replies)
Discussion started by: frustrated1
11 Replies
2. Shell Programming and Scripting
Say i have 2 files in the giving format:
file1
1 2 3 4
1 2 3 4
1 2 3 4
file2
1 2 3 4
1 2 3 4
1 2 3 4
I have a PERL code (loaned by one of u -i forgot who - thanks!) that extracts the 2nd column from each file and append horizontally to a new file:
perl -ane 'push @{$L->}, $F; close... (1 Reply)
Discussion started by: epi8
1 Replies
3. Shell Programming and Scripting
hai, how can i sort a file alphabetically without using sort command (6 Replies)
Discussion started by: rahul801
6 Replies
4. UNIX for Dummies Questions & Answers
How can I list the file under current directory both in alphabetical and in reverse alphabetical order? (1 Reply)
Discussion started by: g.ashok
1 Replies
5. Shell Programming and Scripting
What should be the Shell script that counts a number of unique word contained in a file and print them in alphabetical order line by line? (7 Replies)
Discussion started by: proactiveaditya
7 Replies
6. Shell Programming and Scripting
Hi
I have a requirement like below
I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory
My files looks like this
PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies
7. Shell Programming and Scripting
Hi everyone!
I am new to the forum and have recently started working with Linux.
Quick question, I want a user list in alphabetical order as the output of a shell script.
Who can help me!?
Thanks!
From the netherlands ;) (5 Replies)
Discussion started by: dennisbest85
5 Replies
8. UNIX for Dummies Questions & Answers
I've looking over a script for work and I've had a problem with the script not listing the files in alphabetical order. To look up PIDs for apps, it would be beneficial to have them listed in that order. Here is what I've been reviewing.
#!/usr/bin/perl
$str = sprintf "%4s %-40s", "PID",... (7 Replies)
Discussion started by: whysolucky
7 Replies
9. Shell Programming and Scripting
Hi, need help in sorting lines between strings "<section status = “ole-service”>" and "</section>" in alphabetical order, based on the text in red. Hoping for an AWK or SED solution. Thank you.
...
<section status = “ole-service”>...
<p service = "OOO">XZZ</p>
<p service = "AAA">AAA... (3 Replies)
Discussion started by: pioavi
3 Replies
10. Shell Programming and Scripting
Hi All,
I have one file containing thousands of table names in single column. Now I want that file split into multiple files e.g one file containing table names starting from A, other containing all tables starting from B...and so on..till Z.
I tried below but it did not work.
for i in... (6 Replies)
Discussion started by: shekhar_4_u
6 Replies
LEARN ABOUT SUNOS
apropos
apropos(1) User Commands apropos(1)
NAME
apropos - locate commands by keyword lookup
SYNOPSIS
apropos keyword...
DESCRIPTION
The apropos utility displays the man page name, section number, and a short description for each man page whose NAME line contains keyword.
This information is contained in the /usr/share/man/windex database created by catman(1M). If catman(1M) was not run, or was run with the
-n option, apropos fails. Each word is considered separately and the case of letters is ignored. Words which are part of other words are
considered; for example, when looking for `compile', apropos finds all instances of `compiler' also.
apropos is actually just the -k option to the man(1) command.
EXAMPLES
Example 1: To find a man page whose NAME line contains a keyword
Try
example% apropos password
and
example% apropos editor
If the line starts `filename(section) ...' you can run
man -s section filename
to display the man page for filename.
Example 2: To find the man page for the subroutine printf()
Try
example% apropos format
and then
example% man -s 3s printf
to get the manual page on the subroutine printf().
FILES
/usr/share/man/windex table of contents and keyword database
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdoc |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
SEE ALSO
man(1), whatis(1), catman(1M), attributes(5)
DIAGNOSTICS
/usr/share/man/windex: No such file or directory
This database does not exist. catman(1M) must be run to create it.
SunOS 5.10 20 Dec 1996 apropos(1)