Sponsored Content
The Lounge What is on Your Mind? This might be a new geek record Post 60276 by 98_1LE on Friday 14th of January 2005 12:23:25 AM
Old 01-14-2005
This might be a new geek record

Well probably not, but much easier than expected.

I am posting this from a computer I decided to build about 4 hours ago. I went to Fry's, picked everything up, brought it home, and assembled it. I already knew which case, motherboard, and proc I was going to buy, so it didn't take too long to do the shopping (took longer to find someone to ring it up, then longer to stand in line). I came home and put it together. I had downloaded a bootable DVD image of Suse Linux a while back, and since that is what will ultimately be installed, I decided to see if it would run off the DVD. Fired up like a champ, and even pulled an IP from the router.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

splitting a record and adding a record to a file

Hi, I am new to UNIX scripting and woiuld appreicate your help... Input file contains only one (but long) record: aaaaabbbbbcccccddddd..... Desired file: NEW RECORD #new record (hardcoded) added as first record - its length is irrelevant# aaaaa bbbbb ccccc ddddd ... ... ... (1 Reply)
Discussion started by: rsolap
1 Replies

2. UNIX for Dummies Questions & Answers

how to read record by record from a file in unix

Hi guys, i have a big file with the following format.This includes header(H),detail(D) and trailer(T) information in the file.My problem is i have to search for the character "6h" at 14 th and 15 th position in all the records .if it is there i have to write all those records into a... (1 Reply)
Discussion started by: raoscb
1 Replies

3. UNIX for Advanced & Expert Users

Print Full record and substring in that record

I have i got a requirement like below. I have input file which contains following fixed width records. 00000000000088500232007112007111 I need the full record and concatenated with ~ and characters from 1to 5 and concatenated with ~ and charactes from 10 to 15 The out put will be like... (1 Reply)
Discussion started by: ukatru
1 Replies

4. Shell Programming and Scripting

Testing Next Record before processing is done on that Record

I am trying to see if there is a way in awk to test the next record before processing. All I am trying to do is see if the next line equal something then turn a flag off. Example: Problem Cron IneedThis KeyOnThis somemoredata somemoredata Cron somemoredata somemoredata IneedThis... (7 Replies)
Discussion started by: timj123
7 Replies

5. Shell Programming and Scripting

Reject the record if the record in the next line does not satisfy the pattern

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten The output should be 1one 2two 3three 1four 2five 3six (2 Replies)
Discussion started by: supchand
2 Replies

6. Shell Programming and Scripting

Reject the record if the record in the next line does not begin with 2.

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten 2eleven 2twelve 1thirteen 2fourteen The output should be: (5 Replies)
Discussion started by: supchand
5 Replies

7. Shell Programming and Scripting

How to compare current record,with next and previous record in awk without using array?

Hi! all can any one tell me how to compare current record of column with next and previous record in awk without using array my case is like this input.txt 0 32 1 26 2 27 3 34 4 26 5 25 6 24 9 23 0 32 1 28 2 15 3 26 4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies

8. Shell Programming and Scripting

Extract timestamp from first record in xml file and it checks if not it will replace first record

I have test.xml <emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp> <Join><id>101</id><city>london</city><date>06/06/14 2011</date></join> <Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join> <Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies

9. Shell Programming and Scripting

Replace a string for every record after the 1st record

I have data coming in the below format for each record <?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox> <?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox... (8 Replies)
Discussion started by: dsravanam
8 Replies

10. Shell Programming and Scripting

Need code for updating second record to first record in shell scripting

Hi,, I have requirement that i need to get DISTINCT values from a table and if there are two records i need to update it to one record and then need to submit INSERT statements by using the updated value as a parameter. Here is the example follows.. SELECT DISTINCT ID FROM OFFER_GROUP WHERE... (1 Reply)
Discussion started by: Samah
1 Replies
itu(1M) 						  System Administration Commands						   itu(1M)

NAME
itu - convert packages to Driver Update format and patch Solaris install media for Install Time Update SYNOPSIS
itu makedu -r solaris_release [-v] [-f] [-d output_dir] [-o iso_file] [-l iso_label] package [package...] itu patchmedia -R media_root [-v] [-f] [-o iso_file] [-l iso_label] pkg_or_patch [pkg_or_patch...] itu makeiso -o iso_file [-v] [-l iso_label] media_root DESCRIPTION
The itu utility converts driver packages to Driver Update (DU) format and patches a Solaris install media with driver packages and patches for Install Time Update (ITU). itu has three subcommands: makedu, patchmedia and makeiso. OPTIONS
The following options are supported: -d output_dir Directory where the Driver Update directory is to be created. -f If output_dir/DU or iso_file already exists, remove it without asking first. -l iso_label Label/volume name of the ISO image (if -o option is specified). -o iso_file Path of the ISO image file to be created. For subcommands patchmedia and makeiso, it will be a bootable ISO image. This option must be specified for subcommand makeiso. -R media_root Top-level directory of on-disk image of Solaris installation media. This option must be specified for subcommand patchmedia. -r solaris_release Solaris release number for which the Driver Update is intended. It takes the form of the output of uname -r, for example, 5.10. This option must be specified for subcommand makedu. -v Verbose. Multiple -v options increase verbosity. SUB-COMMANDS The itu subcommands are described as follows. makedu The makedu subcommand takes one or more driver packages as input and converts them to DU format. At the beginning of an interactive Solaris installation session, these driver updates can be applied to the running kernel, which will then also automatically apply them to the newly installed Solaris at the end of the installation process. The -r option is required to specify the Solaris release number for which the driver updates apply. The solaris_release option argument takes the form uname -r output, for example, 5.10 or 5.11. If the -d option is specified, the resulting DU directory tree is placed in the directory output_dir. If the -o option is specified, a (non-bootable) ISO image of the DU directory tree is written in the file iso_file. This ISO image can be burned onto a CD/DVD using cdrw(1) or cdrecord(1) (not a SunOS man page). See the "Examples" section below for an example of creating a DU on a floppy. At least one of -d and -o option must be specified. If both are specified, then both an ISO image and a directory tree are generated. patchmedia The patchmedia subcommand takes a list of driver packages and patches as input and applies them to the miniroot of a Solaris install media. It also places them in a subdirectory called ITUs under the Solaris install media's top-level directory: media_root/ITUs When booting a system from the updated media, the patches and packages will be part of the booted Solaris image. They will also be applied to the target system being installed at the end of the installation process. The -R option must be entered on the command line to specify the Solaris install media. Note that the install media must be on a location that is writable by itu. If the -o option is specified, a bootable ISO image of the patched install media is also created in the file iso_file. The ISO image can then be burned onto a CD or DVD. makeiso The makeiso subcommand runs mkisofs(8) to create a bootable Solaris ISO image of the Solaris install media media_root and writes it to the file iso_file. The ISO image file can then be burned onto a CD or DVD with utilities such as cdrw(1) or cdrecord(1). (Note that mkisofs(8) and cdrecord(1) are not SunOS man pages.) Caution - The Solaris install media media-root must contain the file boot/grub/stage2_eltorito, which will be written to the media boot sectors. This file will be modified with some boot information, thus it has to be writable. If necessary, first save a copy, prior to running this subcommand. OPERANDS
The following operands are supported: package [package...] One or more driver packages. pkg_or_patch [pkg_or_patch...] One or more patches or packages. media_root The top-level directory of a Solaris install media. EXAMPLES
Example 1 Creating a DU CD/DVD The following commands create a Driver Update CD/DVD containing the packages SAMPLEpkg1 and SAMPLEpkg2. # itu makedu -r 5.10 -o my.iso SAMPLEpkg1 SAMPLEpkg2 # cdrw -i my.iso Example 2 Creating a DU Floppy The following commands create a Driver Update floppy containing the driver package MYdriver. # rmformat -F quick /dev/rdiskette # mkfs -F pcfs /dev/rdiskette # mount -F pcfs /dev/diskette /mnt # /usr/bin/itu makedu -r 5.10 -d /mnt /export/MYdriver # umount /mnt # dd if=/dev/rdiskette of=floppy.dd The itu command above creates the DU directly onto the floppy mounted on /mnt. The dd invocation stores an image of the floppy in the file floppy.dd. This is useful for distributing a DU floppy in file form. From the file, the floppy can then be recreated as follows: # dd if=floppy.dd of=/dev/rdiskette Example 3 Patching the Solaris Install Media The following command patches the Solaris install media in /export/s10u1 with patch /opt/patches/123456-07 and driver package /opt/pkgs/MYdriver. The command also creates a bootable ISO image with ISO label "MyS10U1" in the file /tmp/dvd.iso. # /usr/bin/itu patchmedia -R /export/s10u1 -o /tmp/dvd.iso -l MyS10U1 /opt/patches/123456-07 /opt/pkgs/MYdriver Example 4 Creating a Bootable ISO Image The following commands create the bootable ISO image mydvd.iso of the Solaris install image /export/solaris-10u1 with ISO label "Special- S10". # /usr/bin/itu makeiso -o mydvd.iso -l "Special-S10" /export/solaris-10u1 # cdrw -i mydvd.iso ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
cdrw(1), patchadd(1M), pkgadd(1M), attributes(5) mkisofs(8), (/usr/share/man/man8/mkisofs.8), in the SUNWfsman package (not a SunOS man page) SunOS 5.11 25 Jul 2008 itu(1M)
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy