12-11-2008
sorry to hear - I'm getting the correct output under Sun/Solaris.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to delete a set of files in certain directories if there're older than a certain number of days. So I have a text file, with each line containing the directory & number of days.
The format is like this:
dirA,5
dirB,7
How do I write script to iteratively parse this text file & delete... (5 Replies)
Discussion started by: chengwei
5 Replies
2. Shell Programming and Scripting
I have a file which contains blocks of text - each block is a multi-lines text delimited by blank lines eg.
<blank line>
several lines of text
...
pattern found on this line
several more lines of text
...
<blank line>
How do you delete the block of text (including the blank lines) when... (17 Replies)
Discussion started by: gleu
17 Replies
3. Shell Programming and Scripting
I would like to know code that will delete multiple text from a comma delimited file. For example, how would the comma delimited file below delete the word 'PEST' in Perl language (previously an excel file that was converted to a csv and the last column was PEST):
1, 2,43,34, bosx,PEST
1,... (1 Reply)
Discussion started by: dolo21taf
1 Replies
4. Shell Programming and Scripting
Hi guys,
I need help:
I started receiving automatic emails containing download information. The problem is that these emails are coming in a rich format (I have no control of this) so the important information is buried under a bunch of mumbo-jumbo. To complicated things even further I need to... (10 Replies)
Discussion started by: caprica13
10 Replies
5. Shell Programming and Scripting
Can someone please assist me, I'm trying to get vi to remove all the occurences of the text in a file i.e. "DEVICE=/dev/mt??". The "??" represents a number variable. Is there a globel search and delete command that I can use?
Thank You in Advance. (3 Replies)
Discussion started by: roadrunner
3 Replies
6. Shell Programming and Scripting
Hi All,
I need a unix script to convert .csv files to .skv files (changing a comma delimited file to a semi colon delimited file). I am a unix newbie and so don't know where to start. The script will be scheduled using cron and needs to convert each .csv file in a particular folder to a .skv... (4 Replies)
Discussion started by: CarpKing
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Is there a one-liner that I can use to change a line of text into a comma delimited string?
For example, convert
user1
user2
user3
user4to
user1,user2,user3,user4Currently using while read x, although got the extra comma at the end that I have to remove manually.
Please... (5 Replies)
Discussion started by: newbie_01
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am not sure if I've posted this question before.
Anyway, I previously asked about converting lines of text into a comma delimited string. Now I am needing to do the other way around ... :( :o
Can anyone advise how is this possible?
Example as below:
Converting records/lines to... (2 Replies)
Discussion started by: newbie_01
2 Replies
9. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Apologies in advance to the moderator if I am posting this the wrong way.
I've searched and found the solution to an old post but as it is a very old post, I don't see an option to update it with additional question.
The question I have is in relation to the following post:
How to... (6 Replies)
Discussion started by: newbie_01
6 Replies
LEARN ABOUT OPENSOLARIS
grub
grub(5) Standards, Environments, and Macros grub(5)
NAME
grub - GRand Unified Bootloader software on Solaris
DESCRIPTION
The current release of the Solaris operating system is shipped with the GRUB (GRand Unified Bootloader) software. GRUB is developed and
supported by the Free Software Foundation.
The overview for the GRUB Manual, accessible at www.gnu.org, describes GRUB:
Briefly, a boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring con-
trol to an operating system kernel software (such as Linux or GNU Mach). The kernel, in turn, initializes the rest of the operating system
(for example, a GNU [Ed. note: or Solaris] system).
GNU GRUB is a very powerful boot loader that can load a wide variety of free, as well as proprietary, operating systems, by means of chain-
loading. GRUB is designed to address the complexity of booting a personal computer; both the program and this manual are tightly bound to
that computer platform, although porting to other platforms may be addressed in the future. [Ed. note: Sun has ported GRUB to the Solaris
operating system.]
One of the important features in GRUB is flexibility; GRUB understands filesystems and kernel executable formats, so you can load an arbi-
trary operating system the way you like, without recording the physical position of your kernel on the disk. Thus you can load the kernel
just by specifying its file name and the drive and partition where the kernel resides.
Among Solaris machines, GRUB is supported on x86 platforms. The GRUB software that is shipped with Solaris adds two utilities not present
in the open-source distribution:
bootadm(1M) Enables you to manage the boot archive and make changes to the GRUB menu.
installgrub(1M) Loads the boot program from disk.
Both of these utilities are described in Solaris man pages.
Beyond these two Solaris-specific utilities, the GRUB software is described in the GRUB manual, a PDF version of which is available from
the Sun web site. Available in the same location is the grub(8) open-source man page. This man page describes the GRUB shell.
SEE ALSO
boot(1M), bootadm(1M), installgrub(1M)
Solaris Express Installation Guide: Basic Installations
System Administration Guide: Basic Administration
http://www.gnu.org/software/grub
SunOS 5.11 21 Apr 2005 grub(5)