Sponsored Content
Homework and Emergencies Homework & Coursework Questions UNIX script coding HW question Post 302894326 by bakunin on Monday 24th of March 2014 10:28:40 PM
Old 03-24-2014
Quote:
Originally Posted by renegade755
i tried everything to write this code i couldnt
OK, what exactly have you tried? Post your tries here and we can tell you why they don't work or what you do wrong.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Coding Standards

Hi, I am looking for some coding standards for Unix Shell Scripting. Can anyone help me out in this? Regards, Himanshu (3 Replies)
Discussion started by: himanshu_s
3 Replies

2. Shell Programming and Scripting

Shell Coding question for any experts out there

Given this one long stream of data (all one line): <TransactionDetail><TransactionHeader><ErrorLogging>YES</ErrorLogging><HistoryLogging>YES</HistoryLogging><ErrorDetection>NO</ErrorD... (4 Replies)
Discussion started by: dfran1972
4 Replies

3. Shell Programming and Scripting

Coding Standard For Unix Shell Scripting!!!

Is there any site on Coding Standard for Shell Scripting in UNIX. Please help me know!!!!! Thanks Om (1 Reply)
Discussion started by: Omkumar
1 Replies

4. UNIX for Dummies Questions & Answers

Unix coding tip required

Hi! Suppose I am at a location xyz:/abc1/abc2/abc3 Is it possible to move to another location xyz:/mnl1/mnl2/mnl3 by some coding within a script? (5 Replies)
Discussion started by: udiptya
5 Replies

5. Solaris

Getting Started in UNIX - incorporating C coding

I'm just starting a 'serious' coding in UNIX, so what I need is to run a C code on UNIX, What do I have to install (app) prior to coding/running the code and how do I compile that code? can I write my c code in UNIX or I need to have a visual studio for this? (7 Replies)
Discussion started by: Peevish
7 Replies

6. UNIX for Dummies Questions & Answers

Unix coding for triggering informatica

Hi, I have very little knowledge with unix and pmcmd. I need help with a issue. I have to see whether a file has been dropped in a particular location/path. If the file dropped I have to check the last modified time, which should be greater than 8pmEST the prior day. If the file has been... (4 Replies)
Discussion started by: redwolves
4 Replies

7. Shell Programming and Scripting

Need help in shell script coding

I have a file f1.txt that contains string: f1.txt aaa bbb ccc ... I want to write code to search that each string in file f2.txt(this file contains 1000+line codes). file f2.txt .. .. ....aaa...xyz.. ... ... ...ppp... (dots . can be characters ot blank spaces) If particular... (2 Replies)
Discussion started by: Sanchit
2 Replies

8. Shell Programming and Scripting

UNIX script coding help?

Unix script coding help? i am trying to write a code that will display following menu to user: (A) Add (B) Subtract (C) Multiply (D) Divide (E) Modulus (F) Exponentiation (G) Exit Then ask user for choice (A-F). After taking users choice ask user for two numbers and perform... (3 Replies)
Discussion started by: renegade755
3 Replies

9. UNIX for Dummies Questions & Answers

Help with understand shell script coding

Good afternoon everyone, I am very new to UNIX shell scripting and I am trying to understand the following code. I know what it does but I need to modify it so it will allow me to pass a file name as *FILENAME* Thank for any guidance offered. if ] ; then match=`expr "$file" :... (2 Replies)
Discussion started by: Walter Barona
2 Replies

10. What is on Your Mind?

Coding Style at UNIX.com forums

Hi, as I mentioned in this thread(https://www.unix.com/shell-programming-and-scripting/280737-awk-function-return-permutations-n-items-out-m.html), a helpful coding style may improve overall value and support for people who come here and want to learn things the participants from unix.com have... (2 Replies)
Discussion started by: stomp
2 Replies
setpix(1)						      General Commands Manual							 setpix(1)

Name
       setpix - Set FITS or IRAF image values

Synopsis
       setpix [-vn] file.fts [x_range y_range value] [@valuefile]

Description
       Set  a  specified  pixel  or  range of pixels in a FITS or IRAF image to a specified value. More than one range of pixels and values may be
       specified on one command line. A file of xrange yrange value triplets may be used to set multiple regions at once. The image may  be  over-
       written or a new image created.

Options
       filename
	      Name of IRAF image header file or FITS file. This must be present.

       @coordfile
	      Name of file containing lines of the format
		       xrange  yrange  value  where  xrange  and  yrange are of the format n or n-n or n,n,n or n-n,n-n and value my be integer or
	      floating point.  value will be converted to the type of the image. If a range is 0, the entire row or column specified by the  other
	      non-zero	range  will  be  set to the indicated value. If both ranges are zero, the entire image will be set to the specified value.
	      New in version 2.6.4.

       xrange yrange value
	      Image coordinate x and y ranges and the value to which that region will be set. Either one of these triplets or a file of  triplets,
	      specified by @filename, must be present. xrange and yrange are of the format n or n-n or n,n,n or n-n,n-n and value my be integer or
	      floating point. value will be converted to the type of the image. If a range is 0, the entire row or column specified by	the  other
	      non-zero	range  will  be  set to the indicated value. If both ranges are zero, the entire image will be set to the specified value.
	      Ranges new in version 2.6.4.

       -a <number>
	      Add constant to pixels

       -d <number>
	      Divide pixels by constant

       -i     List each line which is dropped

       -m <number>
	      Multiply pixels by constant

       -n     Write the output to a new file which is named by inserting an e before the file extension. The new file is  always  written  to  the
	      current working directory.

       -s <number>
	      Subtract constant from pixels

       -v     Print more information about the process

Author
       Doug Mink, SAO (dmink@cfa.harvard.edu)

6 July 2001							     WCSTools								 setpix(1)
All times are GMT -4. The time now is 02:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy