Hi,
I have a shell script to build components of a product. The follow snippet will explain what I am doing.
# !/bin/sh
for choice in "$@" ;
do
case $choice in
"o") echo "Calling $choice" ; o ;;
"i") echo... (8 Replies)
I have input file with below content:
Person:
Name: Firstname1 lastname1
Address: 111, Straat
City : Hilversum
Person:
Name : Fistname2 lastname2
Address: 222, street
Cit: Bussum
Person:
Name : Firstname2 lastname3
Address: 333, station straat
City: Amsterdam
I need... (6 Replies)
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
I have code that accepts input from a user, and when the user hits enter it is supposed to delete that whole line from the file.
echo "Which record? "
read record
sed '/$record/d' file
However, it does not delete it. Any help? (1 Reply)
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
Good Evening. I'm new to C. Can you please help me.
I'm creating an error checking function, user will input a string, this will check if the input is all alphabet or all letters only. If there is a digit or other special char, it will print Error then ask input from user again.
Here's my... (1 Reply)
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
i am having file like this
#!/bin/bash
read -p 'Username: ' uservar
match='<color="red" />'
text='this is only a test
so please be patient
<color="red" />'
echo "$text" | sed "s/$match/&$uservar\g"
so desireble output what i want is if user type MARIA
this is only a test
so please... (13 Replies)
Discussion started by: tomislav91
13 Replies
LEARN ABOUT SUSE
dvired
dvired(1) teTeX dvired(1)NAME
dvired - print dvi-files
SYNOPSIS
dvired [ options ] file
DESCRIPTION
dvired behaves like dvips, except for the fact that two logical pages are put onto each physical sheet of paper.
For options, see dvips(1). This program only interprets the following options:
-o file - redirect output into file.
-P printer - direct output to printer.
-f - direct output to stdout.
Any other option is passed directly to dvips.
EXAMPLES
It is assumed that the PRINTER-variable is set.
dvired -Plw foo - send output to printer lw.
dvired -o foo.ps foo - send output to file foo.ps.
dvired -pp4-7 foo - send 4 pages (reduced onto 2 sheets) of foo to the printer.
dvired foo -f | ghostview - - preview output with ghostview.
SEE ALSO dvips(1)BUGS
dvired is fixed on A4 paper size. If you want to use it with other paper, you have to change the settings within the source.
AUTHOR
Thomas Esser <te@dbs.uni-hannover.de>
teTeX 09/94 dvired(1)