03-04-2008
Or you could just do this:
df -k /
saves a little typing
10 More Discussions You Might Find Interesting
1. SuSE
hey i'm looking for somthing like kazaa that i can use to download some music on, i've relly liked teh progs you guys recommended for MSN so i figured i'd get soem more recomendations....lol thanks. (7 Replies)
Discussion started by: byblyk
7 Replies
2. Shell Programming and Scripting
Hi Guys,
I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys.
MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' `
Harby. (4 Replies)
Discussion started by: hariza
4 Replies
3. Shell Programming and Scripting
I'm trying to isolate attached hard drives that auto-mount to /media so that I can use them as variables in a bash script...
so far I'm here:
variable=$(ls /media | grep -v cdrom )
This lists all the connected drives, each on it's own line and doesn't list anything I don't want (cdrom... (2 Replies)
Discussion started by: Starcast
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide.
ls -aLl /bin | grep "\(x\)"
Which works, just highlights 'x' where ever, when ever.
I'm trying to to get (?:) to work but... (4 Replies)
Discussion started by: MykC
4 Replies
5. UNIX for Dummies Questions & Answers
I have a directory I need to grep which consists of numbered sub directories. The sub directory names change daily. A file resides in this main directory that shows which sub directories are FULL backups or INCREMENTAL backups.
My goal is to grep the directory for the word "full" and then... (2 Replies)
Discussion started by: SysAdm2
2 Replies
6. Shell Programming and Scripting
I have an input file
12.4 1.72849432773174e+01 -7.74784188610632e+01
12.5 9.59432114416327e-01 -7.87018212757537e+01
15.6 5.20139995965960e-01 -5.61612429666624e+01
29.3 3.76696387248366e+00 -7.42896194101892e+01
32.1 1.86899877018077e+01 -7.56508762501408e+01
35 6.98857157014640e+00... (2 Replies)
Discussion started by: chrisjorg
2 Replies
7. UNIX for Dummies Questions & Answers
Hello.
I want to get all modules which are loaded and which name are exactly 2 characters long and not more than 2 characters and begin with "nv"
lsmod | (e)grep '^nv????????????
I want to get all modules which are loaded and which name begin with "nv" and are 2 to 7 characters long
... (1 Reply)
Discussion started by: jcdole
1 Replies
8. Shell Programming and Scripting
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Discussion started by: briandanielz
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a number of files containing the information below.
"""""
Fundallinfo
6.3950 14.9715 14.0482
"""""
I would like to grep for Fundallinfo and use it to read the next line? I ideally would like to read the three numbers that follow in the next line and... (2 Replies)
Discussion started by: Paul Moghadam
2 Replies
10. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
LEARN ABOUT ULTRIX
sigsetjmp
sigsetjmp(3) Library Functions Manual sigsetjmp(3)
Name
sigsetjmp, siglongjmp - nonlocal goto
Syntax
#include <setjmp.h>
sigsetjmp(env, savemask)
sigjmp_buf env;
void siglongjmp(env, val)
sigjmp_buf env;
Description
These routines deal with errors and interrupts encountered in a low-level subroutine of a program.
The subroutine saves its stack environment in env for later use by It returns a value of 0. If the value of the savemask argument is not
zero, the subroutine also saves the process' current signal mask as part of the calling environment.
The subroutine restores the environment saved by the last call of with the supplied env buffer. If the env argument was initialized by a
call to the subroutine with a nonzero savemask argument, the subroutine restores the saved signal mask. It then returns in such a way that
execution continues as if the call of had just returned the value val to the subroutine that invoked which must not itself have returned in
the interim. However, cannot cause to return the value 0. If is invoked with a val of 0, returns a value of 1. All accessible data have
values as of the time was called.
Restrictions
The subroutine does not save the current notion of whether the process is executing on the signal stack. When you invoke the subroutine,
the signal stack is left in an incorrect state.
See Also
sigstack(2), sigvec(2), signal(3), sigprocmask(3)
sigsetjmp(3)