Please check those quotes. You have included path also in the quotes that's why it is printing whole path. Please change those quote location and try..
I have two files. File A and File B.
File A has two fields separated by comma
352020252365988, 652020100572356
546876543215667, 652065465654686
...
File B has many Fields separate by spaces
Date Name 352020252365988 Reference
Date2 Name2 546876543215667 Reference
I want to... (4 Replies)
suppose if u have a file like that
Hen ABCCSGSGSGJJJJK 15
Cock ABCCSGGGSGIJJJL 15
* * * * * * : * * * . * * * :
Hen CFCDFCSDFCDERTF 30
Cock CHCDFCSDHCDEGFI 30
* . * * * * * * * : * * :* : : .
The output shud be
where there is : and .
It shud... (4 Replies)
Hi all,
I have a script that bulk loads thousands of lines of data. I need to log the output during the execution of the script.
I know I can redirect (">") the output to a file; however, I want the output going to both the screen and the log file.
I thought I could use pipe to pipe the... (10 Replies)
Hi All,
Am using the below script to produce some statistics. Currently it send the results to a log file and sends the contents of the log to a mail ID.
Next time when it runs it erases the previous log and writes the latest output to the log file.
I want the output to be appended to... (2 Replies)
I'm trying to output the contents of the infile to the outfile using Append.
I will want to use append but the syntax doesn't seem to be working !
Input file (called a.txt) contains this:
a
a
a
b
b
b
I'm running shell script (called k.sh) from Unix command-line like this:
./k.sh .... (1 Reply)
All,
PLease can you help me with a shell script which can compare two xml files and print the difference to a output file.
I have attached one such file for you reference.
<Group>
<Member ID=":Year_Quad:41501" childCount="4" fullPath="PEPSICO Year-Quad-Wk : FOLDER.52 Weeks Ending Dec... (2 Replies)
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Is there any way I can achieve this?
Considering test1 :
a 1 2 3 4
b 2 3 4 5
c 12 1232 14 1
d 10 13 4 5
e 1 5 6 9 1
And test to be some string :
qw
twe
tew
we
qw
I want something like this :
a 1 2 qw 4
b 2 3 twe 5 (5 Replies)
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Experts,
I am writing a script and able to write only small piece of code and not able to collect logic to complete this task.
In input file have to look for name like like this (BGL_HSR_901_1AG_A_CR9KTR10) before sh iss neors. Record this (BGL_HSR_901_1AG_A_CR9KTR10) in csv file
Now have to... (0 Replies)
Discussion started by: as7951
0 Replies
LEARN ABOUT SUNOS
prt
sccs-prt(1) User Commands sccs-prt(1)NAME
sccs-prt, prt - display delta table information from an SCCS file
SYNOPSIS
/usr/ccs/bin/prt [-abdefistu] [-cdate-time] [-rdate-time] [-ysid] s.filename...
DESCRIPTION
prt prints selected portions of an SCCS file. By default, it prints the delta table (version log).
If a directory name is used in place of the s.filename argument, the prt command applies to all s.files in that directory. Unreadable
s.files produce an error; processing continues with the next file (if any). The use of `-' as the s.filename argument indicates that the
names of files are to be read from the standard input, one s.file per line.
OPTIONS
If any option other than -y, -c, or -r is supplied, the name of each file being processed (preceded by one NEWLINE and followed by two NEW-
LINE characters) appears above its contents.
If none of the -u, -f, -t, or -b options are used, -d is assumed. -s, -i are mutually exclusive, as are -c and -r.
-a Display log entries for all deltas, including those marked as removed.
-b Print the body of the s.file.
-d Print delta table entries. This is the default.
-e Everything. This option implies -d, -i, -u, -f, and -t.
-f Print the flags of each named s.file.
-i Print the serial numbers of included, excluded, and ignored deltas.
-s Print only the first line of the delta table entries; that is, only up to the statistics.
-t Print the descriptive text contained in the s.file.
-u Print the user-names and/or numerical group IDs of users allowed to make deltas.
-cdate-time Exclude delta table entries that are specified cutoff date and time. Each entry is printed as a single line, preceded by
the name of the SCCS file. This format (also produced by -r , and -y) makes it easy to sort multiple delta tables in
chronological order. When both -y and -c, or -y and -r are supplied, prt stops printing when the first of the two condi-
tions is met.
-rdate-time Exclude delta table entries that are newer than the specified cutoff date and time.
-ysid Exclude delta table entries made prior to the SID specified. If no delta in the table has the specified SID, the entire
table is printed. If no SID is specified, the most recent delta is printed.
USAGE
Output Format
The following format is used to print those portions of the s.file that are specified by the various options.
o NEWLINE
o Type of delta (D or R)
o SPACE
o SCCS delta ID (SID)
o TAB
o Date and time of creation in the form: yy/mm/dd hh/mm/ss
o SPACE
o Username the delta's creator
o TAB
o Serial number of the delta
o SPACE
o Predecessor delta's serial number
o TAB
o Line-by-line change statistics in the form: inserted/deleted/unchanged
o NEWLINE
o List of included deltas, followed by a NEWLINE (only if there were any such deltas and the -i options was used)
o List of excluded deltas, followed by a NEWLINE (only if there were any such deltas and the -i options was used)
o List of ignored deltas, followed by a NEWLINE (only if there were any such deltas and the -i options was used)
o List of modification requests (MRs), followed by a NEWLINE (only if any MR numbers were supplied).
o Lines of the delta commentary (if any), followed by a NEWLINE.
EXAMPLES
Example 1: Examples of prt.
The following command:
example% /usr/ccs/bin/prt -y program.c
produces a one-line display of the delta table entry for the most recent version:
s.program.c: D 1.6 88/07/06 21:39:39 username 5 4 00159/00080/00636...
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
SEE ALSO sccs(1), sccs-cdc(1), sccs-delta(1), sccs-get(1), sccs-help(1), sccs-prs(1), sccs-sact(1), sccs-sccsdiff(1), what(1), sccsfile(4),
attributes(5)DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)).
SunOS 5.10 5 Oct 1990 sccs-prt(1)