Hi,
I need to write a shell script (ksh) to read contents starting at a specific location from one file and append the contents at specific location in another file. Please find below the contents of the source file that I need to read the contents from,
File 1
-----# more... (5 Replies)
Hi guys,
I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help.
I have 2 input files (example given below)
Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
I have a file which has following contents:
localhost_IP_SIP_1233026552455.xml
localhost_IP_SIP_1233026552460.xml
localhost_IP_SIP_1233026552467.xml
localhost_IP_SIP_1233026552759.xml
localhost_IP_SIP_1233026552969.xml
localhost_IP_SIP_1233026552975.xml ... (2 Replies)
Being new to this area .I have been assigned a task which i am unable to do . Can any one please help me .
Hi I have requirement where i have input file XYZ_111_999_YYYYMMDD_1.TXT and with header and series of Numbers and Footer.
I want to create a mutiple output files with each file having a... (2 Replies)
Data
I was trying to write shell script which will be return the output in the below format
First i was trying to do these using sed.
sed -n '/.ksh/p' mainksh.ksh
sed -e 's/*\(.*\)/\1/g' mainksh.ksh
$RUN_DIR, $SUB_DIR and the variables which will be defined in the profile file.
when i am... (0 Replies)
Hi,
I am doing something basic, but I am missing something. Im trying to read the contents of a file and taking those values and connecting to a database. However, it only connect to one (or reads in) value and then exists.
Here is what it looks like:
listname.txt
db1
db2
db3
Script:... (15 Replies)
We're using a ksh script for installing one product.
I've another config file, I'd need to read this configuration file from my main script
Content of the Configuration file:... (2 Replies)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT DEBIAN
gethead
gethead(1) General Commands Manual gethead(1)Name
gethead - Print FITS or IRAF header keyword values
Synopsis
gethead [-hptv] [-d pathname] [-n num] <FITS or IRAF file> kw1 kw2 ... kwn
Description
Print values of the specified keywords from the given image header. By default they are all listed on one line, separated by spaces. The
-v flag causes the keyword names and values to be printed, one keyword per line. To read keywords from a list of files, substitute @<list-
file> for the file names on the command line. To read a lot of keywords, put them, one per line, in a file and substitute @<keylistfile>
on the command line. If two @ commands are present, the program will figure out which contains file names and which contains keywords.
Options-a List file name even if keywords are not found
-d Root directory for input files (default is cwd)
-e Output keyword=value's on one line per file
-f Never print filenames (default is to print them if more than one)
-g Output keyword=value's on one line per keyword
-h flag causes the keyword names to be printed at top of columns.
-n Number of decimal places in numeric output
-o OR conditions instead of ANDing them
-p Print full pathnames of files
-t flag causes the output to be in tab-separated tables with keyword column headings.
-u Always print ___ if keyword not found, event if only one keyword in search
-v Print output as <keyword>=<value>, one per line
Web Page
http://tdc-www.harvard.edu/software/wcstools/gethead.html
Author
Doug Mink, SAO (dmink@cfa.harvard.edu)
6 July 2001 WCSTools gethead(1)