Noob question: How to check the total number of inputs entered by user?
Say I have this line:
I want to write a while loop that repeatedly asks for input if the number of inputs entered is not equal to 3.
I don't know the correct command to find the number of inputs entered. Help, please?
I need the date validation. I searched in the google but i didn't find my requirements.
requirements:
1) user has to enter the date in YYYY/MM/DD format
2) MM validations
3) DD validations.
and if the month is april it should allow 30 days only and for May month it should allow 31 days like... (1 Reply)
Hello everyone!
I am a bit inexperienced with administering queueing programs. I installed Torque (a PBS derivative) on a Linux cluster and it is running well. There is one annoying problem though: users can run massively parallel jobs and serial jobs too. Almost all users do a mix of the two. I... (0 Replies)
Hi i am a total noob at shell scripting. i was wondering if somebody could help me with my script.
i want the script to search the dev folder for the burner file
because they are different between distrubutions? as i under stand it.
this i the script.
#!/bin/bash
echo "Script för att bränna 360... (4 Replies)
ok the user can only enter a number if a letter is entered it shouldnt be accepted
This is what i have so far
read -p "How many cars to enter:" cars
until
do
read -p "Invalid number. Please re-enter:" $tags
done (5 Replies)
Hello
Does the unix korn shell provide a function to convert number entered in command line argument to text or Character so that in next step i will convert Chr to Hex (6 Replies)
Hello,
I am new to awk and I am trying to figure out how to print an output based on user input.
For example:
ubuntu:~/scripts$ steps="step1, step2, step3"
ubuntu:~/scripts$ echo $steps
step1, step2, step3
I am playing around and I got this pattern that I want:
... (3 Replies)
Hi Experts,
path=/db/files/
format=$1
User can enter any file format.compare the user file format with actual file format existed in the directory /db/files. User enter all characters as "A" apart from date format.
example1: user will be entering the file format AAA_AA_YYYYMMDD.AAA
Actual... (6 Replies)
Hello All,
I have a file of ip addresses called activeips.txt
What I'm trying to do is run a simple bash script that has a loop in it. The loop is a cat of the IP addresses in the file.
The goal is to run 2 nmap commands to give me outputs where each address in the list has an OS... (11 Replies)
Discussion started by: Dirk_Pitt
11 Replies
LEARN ABOUT OSX
vm_stat
VM_STAT(1) BSD General Commands Manual VM_STAT(1)NAME
vm_stat -- show Mach virtual memory statistics
SYNOPSIS
vm_stat [[-c count] interval]
DESCRIPTION
vm_stat displays Mach virtual memory statistics. If the optional interval is specified, then vm_stat will display the statistics every
interval seconds. In this case, each line of output displays the change in each statistic (an interval count of 1 displays the values per
second). However, the first line of output following each banner displays the system-wide totals for each statistic. If a count is pro-
vided, the command will terminate after count intervals. The following values are displayed:
Pages free
the total number of free pages in the system.
Pages active
the total number of pages currently in use and pageable.
Pages inactive
the total number of pages on the inactive list.
Pages speculative
the total number of pages on the speculative list.
Pages throttled
the total number of pages on the throttled list (not wired but not pageable).
Pages wired down
the total number of pages wired down. That is, pages that cannot be paged out.
Pages purgeable
the total number of purgeable pages.
Translation faults
the number of times the "vm_fault" routine has been called.
Pages copy-on-write
the number of faults that caused a page to be copied (generally caused by copy-on-write faults).
Pages zero filled
the total number of pages that have been zero-filled on demand.
Pages reactivated
the total number of pages that have been moved from the inactive list to the active list (reactivated).
Pages purged
the total number of pages that have been purged.
File-backed pages
the total number of pages that are file-backed (non-swap)
Anonymous pages
the total number of pages that are anonymous
Uncompressed pages
the total number of pages (uncompressed) held within the compressor
Pages used by VM compressor:
the number of pages used to store compressed VM pages.
Pages decompressed
the total number of pages that have been decompressed by the VM compressor.
Pages compressed
the total number of pages that have been compressed by the VM compressor.
Pageins
the total number of requests for pages from a pager (such as the inode pager).
Pageouts
the total number of pages that have been paged out.
Swapins
the total number of compressed pages that have been swapped out to disk.
Swapouts
the total number of compressed pages that have been swapped back in from disk.
If interval is not specified, then vm_stat displays all accumulated statistics along with the page size.
Mac OS X August 13, 1997 Mac OS X