Solaris 'format' output without args...?


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 'format' output without args...?
# 1  
Old 05-24-2007
Solaris 'format' output without args...?

Can't remember for the life of me, but how does one get the Solaris 'format' command output (in its entirety) without having to hit <enter> or <space> for subsequent disk listings?

I recall a ksh script that got me by a few years ago, but it's long gone from my memroy now...
# 2  
Old 05-24-2007
I would suggest this.
Code:
echo "\n" | format

This should echo a return to the format command and display all disks. I tested it and works pretty good. Should return you to the prompt after output is displayed.
# 3  
Old 05-24-2007
If you only want the list of disks then
Code:
format < /dev/null

will do it.
# 4  
Old 05-24-2007
Thanks for the responses...
I just needed a kick in the head...

Both echo "\n"|format and format < /dev/null worked...

l8r
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies

2. Shell Programming and Scripting

FORMAT output

Input File Symmetrix ID : 000192601507 Masking View Name : TS00P22_13E_1 Last updated at : 05:10:18 AM on Tue Mar 22,2011 Initiator Group Name : 10000000c960b9cd Host Initiators { WWN : 10000000c960b9cd WWN : 10000000c960b9dd } Port... (1 Reply)
Discussion started by: greycells
1 Replies

3. UNIX for Dummies Questions & Answers

How to format the output of df -h?

Hi, I need to format the output of the command "df -h": $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-lv01 271G 13G 245G 6% / tmpfs 16G 0 16G 0% /dev/shm /dev/sda1 97M 50M 43M 55% /boot /dev/mapper/d1vg-lv01 124G 105G 13G 90% /d0 I used awk: df -h |... (6 Replies)
Discussion started by: seafan
6 Replies

4. Shell Programming and Scripting

Store args passed in array but not the first 2 args

Store args passed in array but not the first 2 args. # bash declare -a arr=("$@") s=$(IFS=, eval 'echo "${arr}"') echo "$s" output: sh array.sh 1 2 3 4 5 6 1,2,3,4,5,6 Desired output: sh array.sh 1 2 3 4 5 6 3,4,5,6 (2 Replies)
Discussion started by: iaav
2 Replies

5. Shell Programming and Scripting

Output for 'who' in particular format

echo `whoami;echo @;who -ms | cut -f 2 -d "(" | sed "s/)$//"` getting output as : <userid> @ <machinename> Is it possible to get output as : <userid>@<machinename> (9 Replies)
Discussion started by: lalitpct
9 Replies

6. Shell Programming and Scripting

ls format output

Hello, here is what I've got while using ls -l * in a script : LOG: total 35913 -rw-r--r-- 1 so_nic sonic 833419 Feb 16 06:44 PSYVR3_LOG_PALMPROC_FCST_R20110216.TAR.gz -rw-r--r-- 1 so_nic sonic 2796933 Feb 14 05:11 PSYVR3_LOG_PALMPROC_HDCT_BT_R20110216.TAR.gz SATURNES: total... (3 Replies)
Discussion started by: Aswex
3 Replies

7. Shell Programming and Scripting

Want to format output.

Hi, I have some data in text file as 123 45 34 5 66 I want to create a file as in table format as below: table1 123 45 5 tab2 66 34 tabllllll 123 23 (19 Replies)
Discussion started by: fidelis
19 Replies

8. Shell Programming and Scripting

Dynamic output file generation using a input text file with predefined output format

Hi, I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format. Example: File.txt AP|{SSHA}VEEg42CNCghUnGhCVg== APVG3|{SSHA}XK|"password" AP3|{SSHA}XK|"This is test" .... etc --------- test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies

9. UNIX for Advanced & Expert Users

Format the Output

Hi- Objective of the task is to print the lines which doesnt have a END statement corresponding to a START statement. Let me know if anyone has a better way of doing is. My Thoughts Have 2 files one having START lines and another having END lines (sorted). And then diff the files to get... (8 Replies)
Discussion started by: lorcan
8 Replies

10. Shell Programming and Scripting

capturing output from top and format output

Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date `top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03 Cpu(s): 3.4% us, 8.5% sy .. .. Mem: 1011480k total, 226928k used, ....... (4 Replies)
Discussion started by: new2ss
4 Replies
Login or Register to Ask a Question