10-16-2008
some one giving this command grep '^S[^ ]* R '
can anybody explain above command please
i did't get after ^s they are placing [^ ]* means what how it seperated the first name (begin with s) and last name (begin with R).
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am trying to search through a file for a particular word, then once found, I want the search to carry on for another 30 lines and append all this to a new file. For example, I search for the word "test" in hello.txt:
<--some code-->
<--some code-->
<--some code-->
test
<--some more... (7 Replies)
Discussion started by: ocelot
7 Replies
2. Shell Programming and Scripting
Suppose u have a file
12
22
73
another file
L22D SSS
S12J LLL
H77K PPP
J25O LOP
I73S lOP
K99O PLO
so output shud like
S12J LLL
L22D SSS
I73S lOP
Thanks (2 Replies)
Discussion started by: cdfd123
2 Replies
3. Shell Programming and Scripting
Hi all,
I'm looking for some help. I have a file (very long) that is organized like below:
>Cluster 0
0 283nt, >01_FRYJ6ZM12HMXZS... at +/99%
1 279nt, >01_FRYJ6ZM12HN12A... at +/99%
2 281nt, >01_FRYJ6ZM12HM4TS... at +/99%
3 283nt, >01_FRYJ6ZM12HM946... at +/99%
4 279nt,... (4 Replies)
Discussion started by: d.chauliac
4 Replies
4. Shell Programming and Scripting
Hi all,
I would like to print words in a file seperated by whitespaces containing a specific pattern like "="
e.g. I have a file1 containing strings like
%cat file1
The= some= in
wish= born
<eof> .I want to display only those words containing = i.e The= , some=,wish=
... (5 Replies)
Discussion started by: sree_123
5 Replies
5. Shell Programming and Scripting
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Discussion started by: Shazin
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I am writing a shell script to extract only the error message from a log file.
I am having difficulty in searching the highlighted text in the below code.
<runtimeinfo datetime="Sun Apr 04 20:02:52 EDT 2008" docid="" source="RAWDATA" event="ERROR"... (2 Replies)
Discussion started by: prash1986
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want.
This is how the data in the file.
INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
Discussion started by: venkatesht
5 Replies
8. Shell Programming and Scripting
The problem is similar to my yesterday post
I Would like an awk script that does the following:
I have a file (f1) that contains 1
2
3
4
5and another one (f2) that contains 8|a
9|b
0|c
1|d
2|e
3|f
4|g
5|h
6|i
7|jAnd I'd like to get this:
1|d
2|e
3|f
4|g (5 Replies)
Discussion started by: tukuyomi
5 Replies
9. Shell Programming and Scripting
Hi,
I have more than 30,000 records in a flat file. I want to remove footer from the file by searching a string pattern for the footer.
Example.... let the flat file test.dat contains below records.
record1
record2
record3
..
..
..
record31000
Total records 31000
I want to remove the... (6 Replies)
Discussion started by: gani_85
6 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Thanks,
Jean (9 Replies)
Discussion started by: jeanjkj
9 Replies
LEARN ABOUT CENTOS
seesat5
seesat5(1) General Commands Manual seesat5(1)
NAME
seesat5 - provides satellite visibility information.
SYNOPSIS
seesat5 [ report ] [ go <Label> ] | [ <command> ... ]
DESCRIPTION
This program uses the sgp4 algorithm provided by NORAD to produce position information on a satellite. Seesat5 can produce tracking infor-
mation for one satellite over a period of several days, or for a collection of satellites over that period. By providing filter conditions
seesat5 prints out only those satellites you might have a chance to see rather than all the satellites that pass above the horizon.
Seesat5 is typically run by placing control commands into an init file called SEESAT5.INI. See seesat5 (7) for the description of these
commands. If there is no init file Seesat5 will present the operator with a '>' prompt where commands can be entered. From the prompt
seesat5 will begin analysis when sufficient parameters have been entered to begin the run.
Seesat5 uses selection conditions to filter the data so that only high and bright satellites are printed. Note that the selection condi-
tions are used to select whether or not the current passes data will be printed. If it is printed, then the complete pass data is printed.
ie. all data from when the satellite comes over the horizon until it goes below.
For lines that satisfied ALL the selection conditions, a "+" sign is printed as the first character.
Options
report This option will disable printing of report records in the output of the run. These include all command lines found in SEESAT5.INI
or entered from the command line or the prompt.
go Followed by a label, this option causes branching within the SEESAT5.INI to begin execution at the line following label. Branching
occurs when the cmdline command is executed in the SEESAT5.INI file.
command
Most of the commands that can be found in SEESAT5.INI can be entered on the command line. If you desire the SEESAT5.INI file to exe-
cute after the command line be sure to make the last command RET.
FILES
SEESAT5.INI
The control file for seesat5
*.tle Two line element files used by seesat5.
SEE ALSO
seesat5(7), SEESAT5.INI(5), tle(5), cr(1)
BUGS
Seesat5 is not always able to check data integrity. Since computation and output is driven by the data in the two line element, subtle
errors in a tle can cause floating point exceptions. In addition there are several commands that do not work well together, like SHOWTLE
and RUNTIME. Please report any problems with seesat5 to Dale Scheetz <dwarf@polaris.net>.
Debian Linux 28 March 96 seesat5(1)