Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Replace colon with blank space Post 302576201 by chumsky on Thursday 24th of November 2011 02:44:30 AM
Old 11-24-2011
jayan, you are a star Smilie Thank you
 

10 More Discussions You Might Find Interesting

1. AIX

How can i replace a character with blank space?

i want a command for my script!!! say file consists of character 123 125 127. i need a query to replace the number 2 with 0 so the output should be 103 105 107. i use unix-aix (8 Replies)
Discussion started by: rollthecoin
8 Replies

2. UNIX for Dummies Questions & Answers

Multiple field separators in awk? (First a space, then a colon)

How do I deal with extracting a portion of a record when multiple field separators are involved. Let's say I have: Mike Harrington;(555) 555-5555:250:100:175 Christian Dobbins;(555) 555-2358:155:90:201 Susan Dalsass;(555) 555-6279:250:60:50 Archie McNichol;(555) 555-1348:250:100:175 Jody... (3 Replies)
Discussion started by: doubleminus
3 Replies

3. Shell Programming and Scripting

Replace a blank space with string "\\ "

Hi, I have a requirement to replace a every blank space with char "\\ ". Like string "God Love" to "God\\ Love" and "God Love" as "God\\ \\ Love". and only in the sed. We have already a script but it is replaceing all continuous blank space with one "\\ ". which is as DIR=`sudo echo... (7 Replies)
Discussion started by: Akshay4u
7 Replies

4. Shell Programming and Scripting

loop to replace txt and add command inside of colon (:)

in one of my script..I have some thing like john:christina : one:: and i want to make it like john:chritina:two:(date command):jackey: basically change 'one' to 'two' and run date :command and add other name: (30 Replies)
Discussion started by: Learnerabc
30 Replies

5. Shell Programming and Scripting

Replace comma with a blank space using SED

Hello everyone, I want to replace all "," (commas) with a blank space My command thus far is: cat test.text | sed -e s/\`//g | awk '{print$1" "$2" "$3}' I'm sure you guys know this, but the SED command that I am using is to get rid of the "`" (tics). which gives me: name ... (5 Replies)
Discussion started by: jayT
5 Replies

6. Shell Programming and Scripting

Cut last blank space

Hello, I am using this to get only directories : ls -l | grep '^d'and here is the result : drwx------ 13 so_nic sonic 13 Nov 4 13:03 GLARY drwx------ 3 so_nic sonic 3 May 6 2010 PSY2R drwx------ 15 so_nic sonic 15 Oct 14 08:47 PSYR1 But I only need to keep this... (7 Replies)
Discussion started by: Aswex
7 Replies

7. Shell Programming and Scripting

Replace carriage return with colon on specific column

Hi, I have to process four source text files with possibility to contain carriage return on the particular column. Thus, i need to replace the carriage return with 3 colons <:::> The particular column position in the source files is not fix but the name is fixed. That is, say for example,... (4 Replies)
Discussion started by: agathaeleanor
4 Replies

8. UNIX for Dummies Questions & Answers

blank space

hi everyone, i have a problem in unix script , i need to remove line that has blank , not blank line . example: mahm,,jdggkhsd,ghskj,,fshjkl can anyone help? (4 Replies)
Discussion started by: Reham.Donia
4 Replies

9. Shell Programming and Scripting

Not delete space blank

Hi everyone, i need to "grep" a file with a string with space blanks, like this: grep "XXXX XX" file.txt The problem, i need put the "XXXX XX" in a string variable. When the script executes the grep, do: gresp XXXX XX file.txt How can i solve this problem? The... (5 Replies)
Discussion started by: Xedrox
5 Replies

10. Shell Programming and Scripting

How to replace colon in HH:MI:SS to hypen?

I have a file that contains timestamp in some of the rows in the file and the field separator is colon and some of the rows have numerical values, timestamp and characters with colon as the field separator We are looking to change colon in HH:MI:SS for the timestamp to hyphen “-“ leaving the field... (1 Reply)
Discussion started by: cumeh1624
1 Replies
PFILT(1)						      General Commands Manual							  PFILT(1)

NAME
pfilt - filter a RADIANCE picture SYNOPSIS
pfilt [ options ] [ file ] DESCRIPTION
Pfilt performs anti-aliasing and scaling on a RADIANCE picture. The program makes two passes on the picture file in order to set the expo- sure to the correct average value. If no file is given, the standard input is read. -x res Set the output x resolution to res. This must be less than or equal to the x dimension of the target device. If res is given as a slash followed by a real number, the input resolution is divided by this number to get the output resolution. By default, the output resolution is the same as the input. -y res Set the output y resolution to res, similar to the specification of the x resolution above. -p rat Set the pixel aspect ratio to rat. Either the x or the y resolution will be reduced so that the pixels have this ratio for the specified picture. If rat is zero, then the x and y resolutions will adhere to the given maxima. Zero is the default. -c Pixel aspect ratio is being corrected, so do not write PIXASPECT variable to output file. -e exp Adjust the exposure. If exp is preceded by a '+' or '-', the exposure is interpreted in f-stops (ie. the power of two). Other- wise, exp is interpreted as a straight multiplier. The individual primaries can be changed using -er, -eg and -eb. Multiple exposure options have a cumulative effect. -t lamp Color-balance the image as if it were illuminated by fixtures of the given type. The specification must match a pattern listed in the lamp lookup table (see the -f option below). -f lampdat Use the specified lamp lookup table rather than the default (lamp.tab). -1 Use only one pass on the file. This allows the exposure to be controlled absolutely, without any averaging. Note that a single pass is much quicker and should be used whenever the desired exposure is known and star patterns are not required. -2 Use two passes on the input. This is the default. -b Use box filtering (default). Box filtering averages the input pixels corresponding to each separate output pixel. -r rad Use Gaussian filtering with a radius of rad relative to the output pixel size. This option with a radius around 0.6 and a reduc- tion in image width and height of 2 or 3 produces the highest quality pictures. A radius greater than 0.7 results in a defocused picture. -m frac Limit the influence of any given input pixel to frac of any given output pixel. This option may be used to mitigate the problems associated with inadequate image sampling, at the expense of a slightly blurred image. The fraction given should not be less than the output picture dimensions over the input picture dimensions (x_o*y_o/x_i/y_i), or blurring will occur over the entire image. This option implies the -r option for Gaussian filtering, which defaults to a radius of 0.6. -h lvl Set intensity considered ``hot'' to lvl. This is the level above which areas of the image will begin to exhibit star diffraction patterns (see below). The default is 100 watts/sr/m2. -n N Set the number of points on star patterns to N. A value of zero turns star patterns off. The default is 0. (Note that two passes are required for star patterns.) -s val Set the spread for star patterns to val. This is the value a star pattern will have at the edge of the image. The default is .0001. -a Average hot spots as well. By default, the areas of the picture above the hot level are not used in setting the exposure. ENVIRONMENT
RAYPATH directories to search for lamp lookup table FILES
/tmp/rt?????? AUTHOR
Greg Ward SEE ALSO
getinfo(1), ies2rad(1), pcompos(1), pflip(1), pinterp(1), pvalue(1), protate(1), rad(1), rpict(1), ximage(1) RADIANCE
11/8/96 PFILT(1)
All times are GMT -4. The time now is 06:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy