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
LEARN ABOUT OPENSOLARIS
ethers
ethers(4) File Formats ethers(4)
NAME
ethers - Ethernet address to hostname database or domain
DESCRIPTION
The ethers file is a local source of information about the (48-bit) Ethernet addresses of hosts on the Internet. The ethers file can be
used in conjunction with or instead of other ethers sources, including the NIS maps ethers.byname and ethers.byaddr, the NIS+ table ethers,
or Ethernet address data stored on an LDAP server. Programs use the ethers(3SOCKET) routines to access this information.
The ethers file has one line for each host on an Ethernet. The line has the following format:
Ethernet-address official-host-name
Items are separated by any number of SPACE and/or TAB characters. A `#' indicates the beginning of a comment extending to the end of line.
The standard form for Ethernet addresses is "x:x:x:x:x:x" where x is a hexadecimal number between 0 and ff, representing one byte. The
address bytes are always in network order. Host names may contain any printable character other than SPACE, TAB, NEWLINE, or comment char-
acter.
FILES
/etc/ethers
SEE ALSO
ethers(3SOCKET), hosts(4), nsswitch.conf(4)
SunOS 5.11 22 Jul 2004 ethers(4)