08-27-2010
'w' and 'who' are very similar, they have the same information just switched around a bit
'users' just list the usernames only
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi guys.
i have written a script/program and i would strongly prefer if this script automatically expands the user's terminal whenever he or she starts the script.
this is so the script/program can fit on the user's screeen without user having to manually drag and spread his screen.
what... (2 Replies)
Discussion started by: Terrible
2 Replies
2. Shell Programming and Scripting
Hi
Input
A12345678901234567890 < A12345678901234567890 AND C12345678901234567890 < D12345678901234567890 AND E12345678901234567890 > F12345678901234567890
If the length of the line at any point exceed more than 60 chars it should come to next line
but it should not break a variable... (0 Replies)
Discussion started by: pbsrinivas
0 Replies
3. UNIX for Dummies Questions & Answers
I want to convert all leading tabs to spaces in all PHP files in a certain folder, recursively.
I have successfully used "expand" to do this on one file at a time by doing something like this:
expand -i file.php > file.php
How would I convert all leading tabs to spaces in all PHP... (4 Replies)
Discussion started by: mattalexx
4 Replies
4. Solaris
Hi All,
I need to expand a number of Filesystems on a Sun machine running Solaris 10 OS. But first I am confused;
1. Is it possible to expand a ufs filesystem such as /dev/dsk/c1t1d0s0 (that is not managed by SVM) without lossing existing data?
2. Is it possible to have such a... (7 Replies)
Discussion started by: atogunde
7 Replies
5. Shell Programming and Scripting
I have a log file that looks fine when you view it in Unix but when I send it as an attachment to myself it looses its formatting... so I am using "expand" to replace the tabs with spaces and the format looks good. The code below works great but I was wondering if there was a way to do this without... (2 Replies)
Discussion started by: sethcoop
2 Replies
6. Shell Programming and Scripting
Hi All,
May I know how to expand the words?
e.g:
a
aa
aaa
aaaa
I have try to use
for (i=0;i<5;i++)
do
c="a"
echo -n $c
done
but the output is aaaaa. Is it need to use array?:confused:
Thanks for your help! (5 Replies)
Discussion started by: natalie23
5 Replies
7. AIX
Hello all,
I have the following env:
* DS4300 storage SAN
* AIX 5.3 Lpar (storage through vio server)
* AIX 5.3 Server
Some FS are too small do I'm setting up a process to increase the size of the FS.
To expand the size of the FS I plan to do the following for the physical AIX server,... (1 Reply)
Discussion started by: petervg
1 Replies
8. AIX
Under the df command, one of my logical volumes, /dev/hd4, was showing 100% Used, so I added 2 logical partitions, but its still showing 100% used. Is there a separate command I need to execute to reallocate? (5 Replies)
Discussion started by: markper
5 Replies
9. Red Hat
Hello All,
It goes like this.. I have increased the data hard drive of server by 100GB and rebooted the server.
I want to expand each of the LVM's by 30GB each .There are totally three LVMS to be expanded.Any help on complete commands that needs to be followed?Thanks (4 Replies)
Discussion started by: gull05
4 Replies
LEARN ABOUT OPENDARWIN
expand
EXPAND(1) BSD General Commands Manual EXPAND(1)
NAME
expand, unexpand -- expand tabs to spaces, and vice versa
SYNOPSIS
expand [-t tab1,tab2,...,tabn] [file ...]
unexpand [-a] [-t tab1,tab2,...,tabn] [file ...]
DESCRIPTION
The expand utility processes the named files or the standard input writing the standard output with tabs changed into blanks. Backspace
characters are preserved into the output and decrement the column count for tab calculations. The expand utility is useful for pre-process-
ing character files (before sorting, looking at specific columns, etc.) that contain tabs.
The unexpand utility puts tabs back into the data from the standard input or the named files and writes the result on the standard output.
The following options are available:
-a (unexpand only) By default, only leading blanks and tabs are reconverted to maximal strings of tabs. If the -a option is given, then
tabs are inserted whenever they would compress the resultant file by replacing two or more characters.
-t tab1,tab2,...,tabn
Set tab stops at column positions tab1, tab2, ..., tabn. If only a single number is given, tab stops are set that number of column
positions apart instead of the default number of 8.
ENVIRONMENT
The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of expand and unexpand as described in environ(7).
DIAGNOSTICS
The expand and unexpand utilities exit 0 on success, and >0 if an error occurs.
STANDARDS
The expand and unexpand utilities conform to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The expand command appeared in 3.0BSD.
BSD
April 21, 2002 BSD