If, in a text file a string is expected at a certain fixed position(for eg at position 5 or from 5-10 on every line)
how to check whether data is present on that position or not?
Thnx in advance
You can use the string length method.
I assume that your data would be at the end of the line. If not, show us your input.
Hi,
I need to check for value not equal (<>) to 21 and not equal empty or null values.
Please modify this script
if
then
echo "$VALUE,$BSC_NAME,$BSC_ID" > $OUT_FILE/power_up.out
end if
TQ (5 Replies)
Hi All,
I have a table with 10 columns. Some columns(2nd,4th,5th,7th,8th and 10th) are Not Null columns. I'll get a tab-delimited file and want to check col by col and generate seperate error code for each col eg:102 if 2nd col value is NULL and 104 if 4th col value is NULL so on... I am a... (7 Replies)
My makefile has some code as follows:
if ; then \
echo copying tools; \
cp -f `../${TOOLS_ROOT_PATH}/ext_tools.sh 1` ${EXTERNAL_BIN_DIR} || exit $$?;\
fi; \
The ext_tools.sh is as follows:
cat ttx.conf | grep external | grep -v ^# | awk '{print $1}'
It can sometime result... (1 Reply)
I have an input file having 7 fields delimited by ,
eg :
1,ABC,hg,1,2,34,3
2,hj,YU,2,3,4,
3,JU,kl,4,5,7,
4,JK,KJ,3,56,4,5
The seventh field here in some lines is empty, whereas the other lines there is a value.
How do I insert string NULL at this location (7th loc) for these lines where... (8 Replies)
hi,
i have 3 lines of output , if second line exists then only condition within the if loop has to exeute other wise it has exit from loop.
i had tried like this but not getting
please help me ...
Code:
if ; then
echo "success"
else
echo ""
Use code tags please,... (8 Replies)
Hi Champs!!!
im a newbie in unix, need ur expert help for my problem...
I need to search if there are any "NULL" entries in the string
String without Null
Str1: 203652|1000003653|tellt|RUPV|4649|1|07/28/2011 01:56:12
String with Null (RUPV is removed)
Str2:... (5 Replies)
Hi All,
I am writting a Sell Script, that takes Search String & File Name from the terminal and check for Null Status. If either is NULL then pgm should quit.
I wrote the following:
bash-3.2$ cat null_status_of_parameters.sh
#!/bin/sh
#WASS that takes Search String & File Name from... (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)
Hi,
I have a requirement where I have to check whether the mandatory columns in a pipe delimited file is null and print error message.
For eg, I have to check if the 3rd,5th,6th,7th and 8th column are null and print the message "<column name> is null".
The data file will have aroung 100,000... (6 Replies)
Discussion started by: reshma15193
6 Replies
LEARN ABOUT DEBIAN
plptex
PLPTEX(3plplot) PLplot API PLPTEX(3plplot)NAME
plptex - Write text inside the viewport
SYNOPSIS
plptex(x, y, dx, dy, just, text)
DESCRIPTION
Writes text at a specified position and inclination within the viewport. Text is clipped at the viewport boundaries. The reference point
of a string lies along a line passing through the string at half the height of a capital letter. The position of the reference point along
this line is determined by just, the reference point is placed at world coordinates (x, y) within the viewport. The inclination of the
string is specified in terms of differences of world coordinates making it easy to write text parallel to a line in a graph.
Redacted form: plptex(x, y, dx, dy, just, text)
This function is used in example 2-4,10,12-14,20,23,24,26.
ARGUMENTS
x (PLFLT, input)
x coordinate of reference point of string.
y (PLFLT, input)
y coordinate of reference point of string.
dx (PLFLT, input)
Together with dy, this specifies the inclination of the string. The baseline of the string is parallel to a line joining (x, y) to
(x+dx, y+dy).
dy (PLFLT, input)
Together with dx, this specifies the inclination of the string.
just (PLFLT, input)
Specifies the position of the string relative to its reference point. If just=0., the reference point is at the left and if
just=1., it is at the right of the string. Other values of just give intermediate justifications.
text (const char *, input)
The string to be written out.
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLPTEX(3plplot)