Hi all
Does anyone have a script that will allow me to stop inside a while read loop.
I want to pause the loop until a enter is pressed.
e.g.
While read line
do
echo something
if LINECOUNT > 40
then
read ENTER?"PRESS ENTER TO CONT..."
... (3 Replies)
hi, i will like to know whether awk command can ignore case?
i written a script that will take in user input and search for data on the 1st field from a text file.
echo -n "Title:"
read title
awk -F":" '$1~/'"$title"'/{print $0}' Filename
read ans
return
... (5 Replies)
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Hi,
I am working on a script, which requests users to enter input.
Ex: read -p "Please enter your email id:" email
I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input.
I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Hi,
This query is a part of a much more lengthy script.
I wish to look for all the files in a folder named "data" which in this case has two files i.e. plan.war and agent.properties. For all the files found under data I wish to ask the user as to where they wish copy the files to.
Below,... (14 Replies)
Hi Experts,
Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash
FILE=$1
while read LINE; do
do COMMAND
done < $FILE
Now I want to modify the code... (6 Replies)
I'm having an issue with bash read input when using a case statement.
The script halts and doesn't read the input on the first loop. if I hit enter then the scripts starts to respond as expected. Need some help here.
defaultans=8hrs
read -e -i $defaultans -p "${bldwht}How long would you like... (5 Replies)
Discussion started by: woodson2
5 Replies
LEARN ABOUT HPUX
fsadm
fsadm(1M)fsadm(1M)NAME
fsadm - a file system administration command
SYNOPSIS
FStype] specific_options] special
DESCRIPTION
The command is designed to perform selected administration tasks on file systems. These tasks may differ between file system types. spe-
cial is a device file containing an unmounted file system. However, if the file system is of the type that provides online administration
capabilities the special could be a directory. directory must be the root of a mounted file system.
Only a superuser can invoke
Options
Specify the file system type on which to operate (see
fstyp(1M) and fs_wrapper(5)). If this option is not included on the command line, then the file system type is determined
from the file by matching each special with an entry in that file. If there is no entry in then the file system type is
determined from the file
Specify options specific to each file system type.
specific_options is a list of comma separated suboptions and/or keyword/attribute pairs intended for a specific FStype-spe-
cific module of the command. See the file system specific manual entries for a description of the specific_options sup-
ported, if any.
Echo the completed command line,
but perform no other action. The command line is generated by incorporating the user-specified options and other informa-
tion derived from This option allows the user to verify the command line.
EXAMPLES
Convert an file system from a file system to a file system:
Display relevant file system statistics:
FILES
Static information about the systems
SEE ALSO fsadm_hfs(1M), fsadm_vxfs(1M), fsck(1M), fstab(4), fs_wrapper(5).
fsadm(1M)