10-09-2008
Still the same issue.....the script is not counting the TAB in between the words ....
Hi folks,
Thanks for the reply...sadly to say the issue is still there.
The script is unable to calculate the the TAB space in between the words..such that even if it exceeds col 79....it does'nt count...
But the script can calculate spaces given by "space bar"....
1----------------------------------------------79 #LINE COLOUMN 79
ii[TAB][TAB][TAB]ii[TAB][TAB][TAB]ii[TAB][TAB][TAB]ii
ii[SPACE][SPACE][SPACE]ii[SPACE]ii[SPACE][SPACE][SPACE]ii
The script doesn't work with the first one, but will work perfectly with the second........
Kindly help.....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
write a shell script that accepts a file name starting and ending line numbers as arguments and displays all the lines between the given line numbers:b:.help is appreciated.thank you. (3 Replies)
Discussion started by: shawz
3 Replies
2. Shell Programming and Scripting
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
Discussion started by: unclecameron
4 Replies
3. Shell Programming and Scripting
Hi,
I would like to know how to solve one of my problems using expert unix commands.
I have a file with occasional blank lines;
for example;
dertu
frthu
fghtu
frtty
frtgy
frgtui
frgtu
ghrye
frhutp
frjuf
I need to edit the file so that the file looks like this; (10 Replies)
Discussion started by: Lucky Ali
10 Replies
4. Shell Programming and Scripting
Hi,
I have a file will 1000 lines.... I want to deleted some line in the file... like 800-850 lines i want to remove in that...
can somebody help me..?
thanks. (2 Replies)
Discussion started by: Kattoor
2 Replies
5. Shell Programming and Scripting
hello everyone
my file contains many records, the following is a sample:
BEGIN
ASX1500000050002010120000000308450201012000177
ASX1100002000000201012000000038450201012000220
ASX1600100005000201012000000038450020101200177
ASX1900100006000201067000000058450020101200177... (2 Replies)
Discussion started by: neemoze
2 Replies
6. UNIX for Dummies Questions & Answers
I'm trying to grep lines where the digits at the end of each line are greater than digits. Tried this but it will only allow me to specify 2 digits. Any ideas would greatly be appreciated. grep -i '\<\{3,4,5\}\>' file
---------- Post updated at 05:58 PM ---------- Previous update was at 05:41... (1 Reply)
Discussion started by: jimmyf
1 Replies
7. Shell Programming and Scripting
Hi All,
This might be a basic question... I need to write a script to find all/any Speacial/Null/Control Chars and Print Line Numbers from an input file.
Output something like
Null Characters in File Name at : Line Numbers
Line = Print the line
Control Characters in File Name at : Line... (2 Replies)
Discussion started by: Kevin Tivoli
2 Replies
8. UNIX for Dummies Questions & Answers
I want to replace lines. The files 1 are (separated by \t)
Gm01 phytozome9_0 three_prime_UTR 70641 70759 . - . ID=PAC:26323927.three_prime_UTR.1;Parent=PAC:26323927;pacid=26323927
Gm01 phytozome9_0 three_prime_UTR 90230 90692 . - . ... (1 Reply)
Discussion started by: grace_shen
1 Replies
9. Shell Programming and Scripting
I have a file of the following format:
$data1 size 1278
dataw
datat
datau
datai
$data2 size 456
datak
dataf
datat
datay
datal
$data3 size 154
datag
datas
datat
datar
datas (8 Replies)
Discussion started by: FelipeAd
8 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
i want to write a shell script read below file line by line and want to exclude the lines which contains empty value for MOUNTPOINT field.
i am using centos 7 Operating system.
want to read below file.
# cat /tmp/d5
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root"... (4 Replies)
Discussion started by: balu1234
4 Replies
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)