10-01-2009
making commands by sorting
how to write a command line that displays a long listing of the contents of the working directory, sorted by the date the file or directory was last modified, one screen at a time.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need help on making right decision on witch unix based OS to choose from. What woud be the great for a beginner? :confused: (8 Replies)
Discussion started by: thunderfastfox
8 Replies
2. Shell Programming and Scripting
Here is what I have:
#!/bin/bash
# Setup year date and month
YR=`date +%Y '{print $6}'`
MON=`date +%b '{print $2}'`
DAY=`date +%d '{print $3}'`
file=$YR$MOY$DOM
# clear
# Dump database using USER/PASS to ..sql
mysqldump --user=me -ppass database > database-db.$file.sql
The YR, MON and... (2 Replies)
Discussion started by: npereira
2 Replies
3. Programming
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies
4. Shell Programming and Scripting
I feel like what I need to do, would be best accomplished with a loop.
However I dont have the slightest idea how to set that up.
The script is part of a interactive shell, for making settings to a Mac OS X server.
This particular part is in regards to disabling files services.
... (3 Replies)
Discussion started by: afriend
3 Replies
5. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
6. Shell Programming and Scripting
Dear Friends,
Here I need your help once again.
I have a flat file with pipe de-limited format
e.g. 12345|1234567890|0|0|0|
(Total 5 values)
I want to take all non 0 ("Zero") values in variables named as anu1, anu2, anu3, anu4 and anu5.
Is it possible?
Please guide me.
Thank you in... (3 Replies)
Discussion started by: anushree.a
3 Replies
7. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
8. UNIX for Advanced & Expert Users
Dear Fellow,
I want to make my own OS, Kindly suggest from where i should start. please help me out. (2 Replies)
Discussion started by: zaigham_tt
2 Replies
9. UNIX for Beginners Questions & Answers
This script is executed whenever a new vehicle is added to the cycle-motor park
of campus. The script asks for the following information about the car and adds a new
line to the vehicle file.txt: name (name of an animal, unique identifier), color, mark,
model, type (e.g., electrical, manual),... (2 Replies)
Discussion started by: andre2222
2 Replies
nisls(1) User Commands nisls(1)
NAME
nisls - list the contents of a NIS+ directory
SYNOPSIS
nisls [-dglLmMR] [name...]
DESCRIPTION
For each name that is a NIS+ directory, nisls lists the contents of the directory. For each name that is a NIS+ object other than a direc-
tory, nisls simply echos the name. If no name is specified, the first directory in the search path is listed. See nisdefaults(1).
OPTIONS
The following options are supported:
-d Treat NIS+ directories like other NIS+ objects, rather than listing their contents.
-g Display group owner instead of owner when listing in long format.
-l List in long format. This option displays additional information about the objects such as their type, creation time, owner, and
access rights.
The access rights are listed in the following order in long mode: nobody, owner, group owner, and world.
-L This option specifies that links are to be followed. If name actually points to a link, it is followed to the linked object.
-m Display modification time instead of creation time when listing in long format.
-M Master only. This specifies that information is to be returned from the master server of the named object. This guarantees that
the most up to date information is seen at the possible expense that the master server may be busy.
-R List directories recursively. This option will reiterate the list for each subdirectory found in the process of listing each name.
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until
the object is found. See nisdefaults(1).
EXIT STATUS
The following exit values are returned:
0 Successful operation.
1 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nisdefaults(1), nisgrpadm(1), nismatch(1), nistbladm(1), nis_objects(3NSL), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 10 Dec 2001 nisls(1)