I wish to compute the number of dot chars in a string.
Example:
VAR="aaaa.bbbbb.cccc"
I try the shortest command to solve this test.
Thanks in advance for your help.
Regards,
Giovanni (7 Replies)
for example:
i hav a string like :
/rmsprd/arch01/rmsprd/rmsprdarch72736.log
how I can extract
my_num=72736?
I know I can
echo "/rmsprd/arch01/rmsprd/rmsprdarch72736.log" | tr "/" " " | awk '{ print $4 }' to get rmsprdarch72736.log (4 Replies)
Hi Guys,
I wand find and replace all Extended ASCII Codes from all my log files.
My Log files:
/home/Kalr/PPool/Output
i have logs file in sub dir.
/home/Kalr/PPool/Output/X
/home/Kalr/PPool/Output/Y
/home/Kalr/PPool/Output/Z
My Abc.log file input:
Extended ASCII Codes :–
... (4 Replies)
find /tmp -type f -mtime +180
I have this script get the list to clean up files older than 180 days under /tmp.
But, I want to make sure to grep only a type of files, which have only 6 character long.
....
LT3hqa dRMoya ... (16 Replies)
i have a script that scans a log file every 10 minutes. this script remembers the last line of the log and then uses it to continue monitoring the log when it runs again 10 minutes later.
the script searches the log for a string called MaxClients.
now, how can i make it so that when the... (7 Replies)
hello
how can i cont number of char with loop coomand?
i dont want to use wc or other special command
the script should check all word's char. one by one
also a counter can handle the number
As noted in other threads started today. This is not the correct forum for homework assignments. ... (2 Replies)
hi,
i having a file with | seperated in which i need to search char in 3rd column and replace with null. i need to replace only the coulmn where character occurs in 3rd field
for eg:
file1.txt
xx|yy|xx|12
output file:
xx|yy||12 (5 Replies)
I need to write a BASH script that takes a 2 character string and removes the second character if it is not a digit e.g.
If the string is numberical value >9 e.g. string1 = '34' then leave string1 = '34'.
However if the string is <10 e.g. string1 = '3X' then remove the second char (which... (7 Replies)
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies
LEARN ABOUT MINIX
dis88
Dis88 disassembles 8088 object code to the assembly language for-mat used by It makes full use of symbol table information, sup-ports separate instruction and data space, and generates synthet-ic labels when needed. It does not support 8087 mnemonics, sym-
bolic data segment references, or the ESC mnemonic. The programis invoked by: The -o flag causes object code to be listed. If
no outfile is given, stdout is used. The text segment of an ob-ject file is always padded to an even address. In addition, if
the file has split I/D space, the text segment will be padded to
a paragraph boundary (i.e., an address divisible by 16). Due topadding, the disassembler may produce a few spurious, but harm-less, instructions at the end of the text segment. Because theinformation to which initialized data refers cannot generally beinferred from context, the data segment is treated literally.Byte values (in hexadecimal) are output, and long stretches ofnull data are represented by appropriate .zerow pseudo-ops. Dis-assembly of the bss segment, on the other hand, is quite
straightforward, because uninitialized data is all zero by defi-nition. No data is output in the bss segment, but symbolic la-bels are output as appropriate. The output of operands in sym-bolic form is complicated somewhat by the existence of assemblersymbolic constants and segment override opcodes. Thus, the pro-
gram's symbol lookup routine attempts to apply a certain amount
of intelligence when it is asked to find a symbol. If it cannotmatch on a symbol of the preferred type, it may output a symbolof some other type, depending on preassigned (and somewhat arbi-trary) rankings within each type. Finally, if all else fails, it
will output a string containing the address sought as a hex con-stant. For user convenience, the targets of branches are also
output, in comments, as hexadecimal constants. Various errormessages may be generated as a result of problems encounteredduring the disassembly. They are listed below
Cannot access input file - Input file cannot be opened or
read
Cannot open output file - Output file cannot be created
Input file not in object format-Bad magic number
Not an 8086/8088 object file -CPU ID of the file header is in-
correct
Reloc table overflow - Relocation table exceeds 1500 en-
tries
Symbol table overflow - Symbol table exceeds 1500 entries
Lseek error - Input file corrupted (should nev-
er happen)
Warning: no symbols - Symbol table is missing (use ast)
Cannot reopen input file - Input file was removed during ex-
ecution
Dis88 was written and copyrighted by G. M. Harding and is in-
cluded here by permission. It may be freely redistributed provid-ed that complete source code, with all copyright notices, accom-panies any redistribution. This provision also applies to anymodifications you may make. You are urged to comment such
changes, giving, as a minimum, your name and complete address.