hi,
I have a variable var1 as follows in the script.
var1="one two three desformat=PDF xyz"
I would like to check whether $var1 has a string "desformat=PDF" or not.
Is there any command I can use (not need to creat a file)?
Currently, I am using this:
if ( grep "desformat=PDF"... (1 Reply)
Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Hello All,
Plz help me with:
I have a csv file with data separated by ',' and optionally enclosed by "". I want to check each of these values to see if they exceed the specified string length, and if they do I want to cut just that value to the max length allowed and keep the csv format as it... (9 Replies)
how can i check whether variable contains only character from a-z or A-Z....if my variable contains any alpha numeric, numeric or any character with some special one i.e. *%&@! etcetera etcetera....then it should show me please enter only characters......
Let my variable
var1="abc77}|"
then... (9 Replies)
Hi,
how to check the given string is numeric or not , without converting ( using strtol...).
for ex: if string is C01 - non-numeric data
if string is 001 - numeric data
TIA (11 Replies)
I want to search a file to check if there is string a before string b:
string a, b might not necessarily be in the file, and to return a boolean
string a
(any text)
string b
i have tried for an hour to do this with perl, grep, etc. but no luck
grep doesnt search for patterns... (7 Replies)
I want to check if the string is WINDOWS-1251 or UTF-8
can you help me to find the string encoding???
or maybe to get URL Content-Type charset with wget?
this is my function on PHP
function check_utf8($str) {
$len = strlen($str);
for($i = 0; $i < $len; $i++){
$c =... (2 Replies)
I want to append file with a string but before doing that i want to check if this string already exist in that file.I tried with grep on Solaris 10 but unsuccessful.Man pages from grep seems to suggest if the string is found command status will be 0 and if not 1.But i am not finding it.May be i... (2 Replies)
Hello
So i have that script collection, in which i have a single script to create a configuration file.
In there, i have multiple occourences of something like this:
prj_title=$(tui-read "What is the TITLE? ($prj_name):")
] && prj_title="${prj_name/_/ }"
They all work as expected, if... (5 Replies)
Discussion started by: sea
5 Replies
LEARN ABOUT OSF1
learn
learn(1) General Commands Manual learn(1)NAME
learn - Provides computer-aided instruction for the C shell
SYNOPSIS
learn [-directory] [subject] [lesson]
The learn command provides computer-aided instruction courses and practice in the use of Tru64 UNIX.
OPTIONS
Allows you to exercise a script in a nonstandard place.
DESCRIPTION
To get started, enter learn; if this is the first time that you are invoking the learn command, you are guided through a series of ques-
tions to determine what type of instruction you want to receive.
If you have used learn before and left your last session without completing a subject, the program uses information in $HOME/.learnrc to
start you up in the same place you left off.
To bypass questions, enter a subject or lesson. In order to enter a lesson, you must know the lesson number that you received in a previ-
ous learn command session. If you do not know the lesson number, enter the lesson number as a subject. The learn command searches for the
first lesson containing the subject you specified. If the lesson is a - (dash), learn prompts for each lesson; this is useful for debug-
ging.
You can specify the following subjects:
files editor vi morefiles macros eqn C
SUBCOMMANDS
There are a few special commands. The bye command terminates a learn session, and the where command tells you of your progress (where m
tells you more.) The again command redisplays the text of the lesson and again lesson lets you review lesson. The hint command prints the
last part of the lesson script used to evaluate a response, while hint m prints the entire lesson script. This is useful for debugging
lessons and might possibly give you an idea about what is expected.
EXAMPLES
To take the online lesson about files, enter: learn files
You are then prompted for further input.
FILES
Playpen directories. Start-up information.
SEE ALSO
Commands: csh(1), ex(1)learn(1)