Boa tarde pessoal,
Quais são os comandos do JAVA para processar textos........
Preciso fazer um leitura de um texto como abaixo:Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1913 14593 101860132+ f W95 Ext'd (LBA)
/dev/hda3 1276 1912 5116702+ 83 Linux
/dev/hda5 1913 14462 100807843+ c W95 FAT32 (LBA)
/dev/hda6 14463 14593 1052226 82 Linux swap
Partition table entries are not in disk order
Vou precisa eliminar as primeiras linhas e ler da linha Device boot (excluindo-a) abaixo.....
Cada informação é um atributo...........
String device = /dev/hda1;
boolean boot=true;
int start=1;
int end=1275;
String system = "HPFS/NTFS"
Agora, como ler e atribuir isso em JAVA?
É um comando o linux que gera aquele retorno citadofdisk -l
Obrigado pela ajuda.....
VELO


hahahahah