Sponsored Content
Full Discussion: Format Command
Top Forums UNIX for Dummies Questions & Answers Format Command Post 4490 by ober5861 on Wednesday 25th of July 2001 08:18:39 AM
Old 07-25-2001
What OS are you running?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to format a grep command

Hello I am trying to use the grap command to locate the following phrase in a file: "file.php\tDebug: one two three" Note that \t denotes a tab (whitespace) and not the characters \ and t I am encountering the following 2 problems: 1) there is a perido between "file" and "php" which... (2 Replies)
Discussion started by: jasongr
2 Replies

2. Shell Programming and Scripting

ls command format display

Hi I have 3 files $ ls -l -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 SANITY_TEST -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 -rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 (1) I need to see this "SANITY_TEST" "Success 123333" "Success... (6 Replies)
Discussion started by: mnmonu
6 Replies

3. Shell Programming and Scripting

awk command format ?

Can some body tell me the meaning of '$1=$1' in the following syntax. nawk -v RS='' -v OFS=',' '$1=$1' myFile.txt Thanks, Mahesh :) (4 Replies)
Discussion started by: maheshsri
4 Replies

4. HP-UX

Date format of ll command

Hi, Unix: HP-UNIX. I have a requirement(part of my requirement) to get latest file modification date of all files(In a particular directory). Using ll comand i m able to find out the modification date but not in the required format My command and out put: echo trp_pb.sql `ll... (2 Replies)
Discussion started by: satyadash
2 Replies

5. Shell Programming and Scripting

format a read command

I have a read command like this: print "enter the time to recover to: \n" print "please use the format dd-mon-rrrr hh24:mi:ss" read -n $dbtime How do I format/check the read command to force the desired date/time format I want? (4 Replies)
Discussion started by: djehresmann
4 Replies

6. Shell Programming and Scripting

How to change date format in 'last' command?

hi.. i am new to here. can anybody tell me how can we change the date format in the 'last' command. EX- on running last command i am getting -- rruat pts/12 172.18.40.101 Tue May 3 12:59 still logged in rruat pts/10 blr2-3f-239.asco Tue May 3 12:59 - 13:09 ... (2 Replies)
Discussion started by: thearpit
2 Replies

7. Shell Programming and Scripting

Format 'ps' command

Hi all, When I run the following command: $ ps -ef|grep pmon I get the following output: oracle 2820 11817 0 12:09 pts/0 00:00:00 grep pmon oracle 26906 1 0 Mar14 ? 00:00:43 ora_pmon_sat11cr1 oracle 26915 1 0 Mar14 ? 00:00:08 ora_pmon_sat11dm1 Is... (4 Replies)
Discussion started by: jonnyd
4 Replies

8. Shell Programming and Scripting

How to format output of command?

Hi how do you change the format of the output of ls -lt -c -R $HOME | sed /^total/d From: /home/pikamon/Desktop: -rwxr-xr-x 1 pikamon pikamon 35 Sep 18 14:25 fileModified.sh -rwxr-xr-x 1 pikamon pikamon 87 Sep 18 14:25 fileModified.sh~ /home/darksky21/Downloads: -rwxrw-rw- 1 pikamon... (5 Replies)
Discussion started by: pikamon
5 Replies

9. Shell Programming and Scripting

Date command format

Hi, I need to convert a date format "August 12, 2013 9:40:00 PM CDT" in to DD/MM formant For example ..I am using ... date -d "January10, 2013 04:05:00 AM CST" +%m/%d which gives me... 01/10 However, when i'am using it against every month it is throwing errors on some months as... (3 Replies)
Discussion started by: Kevin Tivoli
3 Replies

10. Shell Programming and Scripting

Need command for date format

hi all, i had a requirement in my script iam passing the parameter like (its not the system date iam passing as argument like it can be any date) 2014-08-25 but in my output file it should be 08/25/2014 please guide me thanks in advance hemanthsaikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies
volmgt_running(3VOLMGT) 				Volume Management Library Functions				   volmgt_running(3VOLMGT)

NAME
volmgt_running - return whether or not Volume Management is running SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ] #include <volmgt.h> int volmgt_running(void); DESCRIPTION
volmgt_running() tells whether or not Volume Management is running. RETURN VALUES
A non-zero value is returned if Volume Management is running, else 0 is returned. ERRORS
volmgt_running() will fail, returning 0, if a stat(2) or open(2) of /dev/volctl fails, or if any of the following is true: ENXIO Volume Management is not running. EINTR An interrupt signal was detected while checking to see if Volume Management was running. EXAMPLES
Example 1: Using volmgt_running() To see if Volume Management is running: if (volmgt_running() != 0) { (void) printf("Volume Management is running "); } else { (void) printf("Volume Management is NOT running "); } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
cc(1B), vold(1M), open(2), stat(2), volmgt_check(3VOLMGT), volmgt_inuse(3VOLMGT), attributes(5), volfs(7FS) NOTES
Volume Management must be running for many of the Volume Management library routines to work. SunOS 5.10 31 Dec 1996 volmgt_running(3VOLMGT)
All times are GMT -4. The time now is 02:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy