Sponsored Content
Full Discussion: vlad
Top Forums Shell Programming and Scripting vlad Post 302138331 by barbus on Monday 1st of October 2007 06:07:22 AM
Old 10-01-2007
Assume xx is the file with the relevant contents.
#!/bin/bash
Lines = wc-l << xx /* the number of lines from the file */
Number=0
while (($Number > $lines+1))
do
Number=$(($Number+1))
echo "$Number” /*at this point how do I call the text on that line number*/

/*then output to any new file (not important at this point)*/

done

This is the type of mini programme am trying to create, perhaps I am way over my head with this, but hey learning is a process Smilie
 
isohybrid(1)						      General Commands Manual						      isohybrid(1)

NAME
isohybrid -- Post-process an ISO 9660 image generated with mkisofs or genisoimage to allow hybrid booting as a CD-ROM or as a hard disk. SYNOPSIS
isohybrid [OPTIONS] <boot.iso> DESCRIPTION
The isohybrid utility modifies a an ISO 9660 image generated with mkisofs, genisoimage, or compatible utilities, to be bootable as a CD-ROM or as a hard disk. OPTIONS
-h <X> Number of default geometry heads -s <X> Number of default geometry sectors -e <X>, --entry <X> Specify parititon entry number (1-4) -o <X>, --offset <X> Specify partition offset (default 0) -t <X>, --type <X> Specify MBR ID (default random) -u, --uefi Build EFI bootable image -m, --mac Add Apple File Protocol partition table support --forcehd0 Assume we are laoded as disk ID 0 --ctrlhd0 Assume disk ID 0 if the Ctrl key is pressed --partok Allow booting from within a partition -?, --help Display help -v, --verbose Display verbose output -V, --version Display version information SEE ALSO
mkisofs(1) isohybrid 17 Jan 2014 isohybrid(1)
All times are GMT -4. The time now is 09:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy