09-02-2016
So, there MUST be 8 stars in the line, plus the 80, plus the 443?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
How do you replace all lines that begin with markerA and end with markerB?
Ex: I have a file with a list of lines.
/sbin/fsck -> $(SEC_CRIT) ;
/sbin/fsck.ext2 -> $(SEC_CRIT) ;
How can I replace all "->$....;" with a blank space... (1 Reply)
Discussion started by: drone
1 Replies
2. UNIX for Dummies Questions & Answers
Anyone know how to use SED to append a comma to the end of each line
example:
field1,field2,field3,field4
If i Cat /textfile ---- How can i append the end of /textfile with a comman? (8 Replies)
Discussion started by: Redg
8 Replies
3. Shell Programming and Scripting
Hi all,
I have output files that are all text files with various different extensions.
So, if I submit the input file "job_name.inp", when it finishes I get an output file "job_name.dat". A typical input file looks something like this:
$CONTRL SCFTYP=RHF RUNTYP=ENERGY MAXIT=199 MULT=1... (4 Replies)
Discussion started by: marcozd
4 Replies
4. Shell Programming and Scripting
Hello!
I have text file:
From aaa@bbb Fri Jun 1 10:04:29 2010
--____OSPHWOJQGRPHNTTXKYGR____
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
My code '234565'. ... (2 Replies)
Discussion started by: candyme
2 Replies
5. Shell Programming and Scripting
how to use sed to put .txt end of line..my input file below
file1
make=^bak12^".
DEV=LONG^cmd/usr/bak/ade4^"
.....................................
file 2
make=^and_LONG/bak12^".
DEV=LONG^cmd/usr/bak/ban3^"
..........................................
file 3... (6 Replies)
Discussion started by: zulabc
6 Replies
6. Shell Programming and Scripting
here is the contents of bigfile.sql
CREATE TABLE `Table11` (
`id` int(11) NOT NULL ,
`entityName` enum('Lines','EndUsers') COLLATE utf8_unicode_ci NOT NULL,
`parentAllianceMigrationProjectId` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2000 DEFAULT CHARSET=utf8... (30 Replies)
Discussion started by: vivek d r
30 Replies
7. Shell Programming and Scripting
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies
8. Shell Programming and Scripting
Dear Unix Experts :),
Below is a small section of a large file with the following list:
1. Starts with string " interest" as the heading
2. Followed by a list of activities
3. Ends with a blank line before starting with another different list.
E.g.
Sporting interest
football... (13 Replies)
Discussion started by: gjackson123
13 Replies
9. Shell Programming and Scripting
I understand that the SED command reads all the lines in the file before adding a required line to the end of the file.
Is there another command that adds a line to the end of files without reading the entire file....
SED is increasing the processing time as the number of lines in each of the... (1 Reply)
Discussion started by: Kanch
1 Replies
10. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
scat(1) General Commands Manual scat(1)
Name
scat - Find catalog stars in a square or circle on the sky
Synopsis
scat [options] [-b or -j] ra dec
Description
scat is a utility for finding all of the Hubble Space Telescope Guide Star Catalog (GSC), U.S. Naval Observatory A2.0 (UA2), B1.0 (UB1),
SA2.0 (USA2), or UJ (UJC) Catalogs, or locally catalogued objects in a specified region of the sky and listing their sky coordinates to
standard output. If the -w flag is set, they are written to a file objectname.catalogname, where objectname is given by the argument to -o
on the command line, defaulting to "search", and catalogname is given by the argument to -c on the command line. The catalog defaults to
the GSC, if no -c argument is present. scat resembles rgsc(1) and star(1), which can search from lists of coordinates but cannot sort the
output. sgsc, suac, and susac are links to this program.1
Options
-a List the single closest catalog source
-b <RA> <Dec>
Output B1950 (FK4) coordinates around this center
-c <name>
Reference catalog (gsc(=HST GSC), ua2(=USNO-A2.0), TMC(=2MASS Point Source Catalog), gsc2(=GSC II), ub1(=USNO-B1.0), local file,
etc.)
-d
Output RA and Dec in degrees instead of hh:mm:ss dd:mm:ss
-e Output ecliptic coordinates
-f Output search center for other programs
-g <class>
HST Guide Star Catalog object class (0=stars 3=galaxies -1=all)
-h Print search and column heading, else do not
-i Print catalog object name, not catalog number
-j <RA> <Dec>
Output J2000 (FK5) coordinates around this center
-k <keyword>
Add value of this keyword to end of output lines from a tab table search
-l Print search center and closest star on one line
-m [<bright magnitude>] <faint magnitude>
Limiting catalog magnitude(s) (default none, bright -2 if only faint is given)
-n <num>
Number of brightest stars to print
-o <name>
Object name used for output file naming
-q <year>
Equinox of output position in fractional years
-r <radius>
Halfwidth (-radius if negative) of search area in arcseconds (default 10)
-s d|m|n|p|r
Sort by (d)eclination, (m)agnitude, (n)o sort, (p)distance from center, or (r)ight ascension.
-t Tab table to standard output or file
-u <x> <y>
Print x y instead of number in front of non-tab output, before RA and Dec or add x and y columns to end of tab output line
-v Verbose listing of processing intermediate results
-w Write output file objectname.catalog or search.catalog if -o is not used.
-x <type>
GSC object type (0=stars 3=galaxies -1=all -2=bands)
-y <year>
Epoch of output positions in fractional years (for proper motion only)
-z Append to existing output file search.catalog or objectname.catalog. Start file if it does not already exist.
See Also
imcat()
Web Page
http://tdc-www.harvard.edu/software/wcstools/scat/
Author
Doug Mink, SAO (dmink@cfa.harvard.edu)
30 January 2003 WCSTools scat(1)