Hello. I would like to strip out the process name from the ${0##*\} variable. So that if I have a script named "mytest.script" the variable would be populated with just "mytest" I have tried doing a substring but it doesnt seem to work.
name=`expr match "${0}" : './*\(/*.\)'`
Doing this... (4 Replies)
As the title says, echo is striping my quotes and I need them.
echo "<?xml version="1.0" encoding="ISO-8859-1"?>"
returns:
<?xml version=1.0 encoding=ISO-8859-1?>
Obviously,
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"
returns the result I need:
<?xml version="1.0"... (3 Replies)
To get this:
https://www.unix.com/members/silversleevesx-albums-incidental-shot-glass-picture127-termshot-rxvt-rootless.png
out of Cygwin's rxvt, you have to tweak your
/cygwin/etc/x11/app-defaults/rxvt file, which is here:... (0 Replies)
I'm new to awk and would appreciate a jump start.
I've got a text doc of people with first and last names, ages, home cities, and a phrase about the individual. I want to parse the text into fields and rows separated by tabs with the field names of - Firstname, Lastname, Age, City, Dollar... (5 Replies)
I have pasted the contents of a log file (swmbackup.wrkstn.1262071383.sales2a) below:
Workstation: sales2a<BR
Vault sales2a-hogwarts will be initialized.<BR
<font color="red"There was a problem mounting /mnt/sales2a/desktop$ </FONT<BR
<font color="red"There was a problem mounting... (4 Replies)
I have a command which returns the below output. How can I write a script to extract mainhost and secondhost from this output and put it into an array? I may sometimes have more hosts like thirdhost. I am redirecting this output to a variable. So I guess there should be a awk or sed command to... (7 Replies)
Why does this search give different result in awk
I do see a mix of this in the example around the net.
What to use and why?
data
1 = red
2 = green
3 = blue
4 = black
awk '$3 == /blue/' data
"no result"
awk '$3 == "blue"' data
3 = blue
awk '$3 ~ /blue/' data
3 = blue (9 Replies)
I dispose of two tab-delimited files (the first column is the primary key):
File 1 (there are multiple rows sharing the same key, I cannot merge them)
A 28,29,30,31
A 17,18,19
B 11,13,14,15
B 8,9File 2 (there is one only row beginning with a given key)
A 2,8,18,30,31
B ... (3 Replies)
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Hey Guys,
Earlier I asked a question under Solaris, which I got great help... thanks.
Although I got the script working for what it really needed to do, I am looking for a bit of help to change the output for nicer reading.
my script gets a list of zones under a global-zone and puts this... (4 Replies)
Discussion started by: dakelly
4 Replies
LEARN ABOUT PHP
glarendx
GLARENDX(1) General Commands Manual GLARENDX(1)NAME
glarendx - calculate glare index
SYNOPSIS
glarendx -t type [ -h ] [ glarefile ]
DESCRIPTION
Glarendx computes the selected glare index type from the given glarefile produced by findglare(1). Glarendx computes one value for each
(indirect illuminance) angle in the input file. If no glarefile is given, glarendx reads from the standard input. The -h option can be
used to remove the information header from the output.
Glarendx understands the following arguments for type:
guth_vcp Guth Visual Comfort Probability
cie_cgi CIE Glare Index (Einhorn)
ugr Unified Glare Rating
brs_gi BRS Glare Index
dgi Daylight Glare Index
guth_dgr Guth Disability Glare Rating
vert_dir Direct Vertical Illuminance
vert_ill Total Vertical Illuminance
vert_ind Indirect Vertical Illuminance
Alternatively, a symbolic or hard link to the program with any of the above names may be used in place of the type argument.
AUTHORS
Greg Ward, Raphael Compagnon
ACKNOWLEDGEMENT
Work on this program was initiated and sponsored by the LESO group at EPFL in Switzerland.
SEE ALSO findglare(1), glare(1), igraph(1), rpict(1), xglaresrc(1), ximage(1)RADIANCE 3/24/94 GLARENDX(1)