04-02-2013
Share your thoughts on solving this question? Show us what have you tried so far?
This User Gave Thanks to Yoda For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
Discussion started by: kungfuice
7 Replies
2. UNIX for Dummies Questions & Answers
#!/bin/bash
{ && ; } || {
echo "Must enter between 1 and 5 parameters"
exit 1
}
for P
do
echo $P >> /tmp/task3
done
echo "SORTED: $(sort -n -r /tmp/task3)"
rm -f /tmp/task3 (2 Replies)
Discussion started by: knc9233
2 Replies
3. Shell Programming and Scripting
Hi,
i have to make a command in unix system which make a sorted list by cpu time (not %cpu ). If the application exists more than a time I would like to keep only one copy.
Could you help me please ???
P.s : I am trying --> ps aux --sort -%cpu | uniq
but I understand that is wrong (5 Replies)
Discussion started by: petros55
5 Replies
4. UNIX for Dummies Questions & Answers
the sorting is based on name of file,
file size
modification time stamps o f file
it should dislay the output in the following format
"." and ".." enteries should be ignored
please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies
5. Shell Programming and Scripting
if i want to display the contents of a file between say line number 3 and 10 then i use the following command
sed -n '3,10p' filename
if this 3 was contained in x and 10 was contained in y then how wud this command modified?
sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Discussion started by: arindamlive
2 Replies
6. Shell Programming and Scripting
I have a sorted list (python) and I want to insert a string if it matches the pattern in list.
Example :
Sorted List
Above list is in sorted order. I need to insert a name in sorted order and also if the name already exist then it should be inserted before the existing... (1 Reply)
Discussion started by: pratapsingh
1 Replies
7. Shell Programming and Scripting
Hi All,
Following is my issue.
$MAIL_DOC = test.txt
test.txt contains the following text .
This process was executed in the %INSTANCE% instance on %RUNDATE%.
I am trying to execute the following script
var=`echo $ORACLE_SID | tr `
NOW=$(date +"%D")
sed -e... (3 Replies)
Discussion started by: megha2525
3 Replies
8. Shell Programming and Scripting
Hello friends! I am working a Psychology/Neuro* project where I am sorting inline citations by category. The final step of the process has me a little stuck. I need to take citations from a text list and sort them in another text file.
Here is a file X example... (1 Reply)
Discussion started by: danbroz
1 Replies
9. UNIX for Beginners Questions & Answers
Hi Team,
Am a newbie to Unix. As I would like to see the Server Name,Owner Name ( not numeric form), Group Name ( not numeric ID), ROOT path.
I would like to send this list as an attachment to my personal mail. Can any one please help me out to to resolve this .
Here is the sample result... (6 Replies)
Discussion started by: vasuvv
6 Replies
10. HP-UX
Hello,
I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire...
But...
After working a bit in the morning to try and pull... (3 Replies)
Discussion started by: Celt1977
3 Replies
LEARN ABOUT DEBIAN
systool
SYSTOOL(1) General Commands Manual SYSTOOL(1)
NAME
systool - view system device information by bus, class, and topology
SYNOPSIS
systool [options [device]]
DESCRIPTION
Calling systool without parameters will present all available bus types, device classes, and root devices.
When device is supplied, the information reqested by options is shown only for the specified device, otherwise all present devices are dis-
played.
systool uses APIs provided by libsysfs to gather information. systool runs only on Linux systems running kernels 2.5 or later, with the
sysfs filesystem mounted.
OPTIONS
-a Show attributes of the requested resource
-b bus Show information for a specific bus
-c class
Show information for a specific class
-d Show only devices
-h Show usage
-m module_name
Show information for a specific module
-p Show absolute sysfs path to the resource
-v Show all attributes with values
-A attribute
Show attribute value for the requested resource
-D Show only drivers
-P Show device's parent
SEE ALSO
The web page of libsysfs at http://linux-diag.sourceforge.net/Sysfsutils.html
AUTHOR
systool was written by Ananth Mavinakayanahalli <ananth@in.ibm.com> and Daniel Stekloff <dsteklof@us.ibm.com>.
This man page was contributed by Martin Pitt <mpitt@debian.org> for the Debian GNU/Linux system (but may be used by others).
Martin Pitt October 12, 2003 SYSTOOL(1)