Search Results

Search: Posts Made By: cstovall
3,436
Posted By cstovall
Both solutions remove the blank lines; however,...
Both solutions remove the blank lines; however, Joeyg's example removes all blank lines. I just need to match the dhcp host blocks then reove blank lines.

Franklin52's example removes all the...
3,436
Posted By cstovall
Delete Blank Lines Between DHCP Host Blocks
Hi All,

I have a dhcpd.conf file that gets static hosts added and removed via a shell script. After sometime, there becomes huge gaps of space ( blank lines ) between each host block. I tried a...
2,099
Posted By cstovall
Thank you very much for you help. Both the for...
Thank you very much for you help. Both the for and while loops worked great.
2,099
Posted By cstovall
AWK Formatting Problem
Hi All,

I'm having a problem with the way awk is interperting a space between double quotes in a for loop. Below is the code and output from running the script:

AWK for loop:
for i in $(awk...
Forum: Solaris 05-21-2007
6,025
Posted By cstovall
Ftp Proxy Solaris 8
Hi All,

I need help using the native Solaris 8 ftp client. I need to ftp through a ftp proxy. How would this be confiured on Solaris 8? Any help would be greatly appreciated.
4,633
Posted By cstovall
Thank you Ygor! The paste command and delimiter...
Thank you Ygor! The paste command and delimiter flag worked.
4,633
Posted By cstovall
Sed appending string using for loop?
Hi All,

I have been trying to format a file using sed. I can't seem to get the syntax right. I want to append the string from file1.txt to file1.csv with the final output file being file2.csv, but...
2,140
Posted By cstovall
Thank you vgersh99! The nawk commands worked...
Thank you vgersh99! The nawk commands worked perfectly. I have been trying all day to do the same thing with sed.
2,140
Posted By cstovall
Formatting a file
Hi All,

I have been trying to format a file using sed. I can't seem to get the syntax right. I want to append the next line delemited by a comma or a comma and double quotes. Here is an example of...
13,538
Posted By cstovall
I figured it out. I used fgrep. ...
I figured it out. I used fgrep.

md5_value=`fgrep '$' /opt/hostconfigs/$HOST`

Now when I echo $md5_value, it prints the hash value.
13,538
Posted By cstovall
How to create md5 Hash variable?
I have a script that runs the grub-md5-crypt command based on whether the pass_value variable is a non-zero string. The md5 hash is being created in the /opt/hostconfigs/$HOST file, but I can't echo...
20,025
Posted By cstovall
Thank you, zazzybob. It worked exactly like I...
Thank you, zazzybob. It worked exactly like I wanted it to.
20,025
Posted By cstovall
sed: find match and delete the line above
I am searching a dhcpd.conf to find the hardware ethernet match, then once the match is found delete just the line above it. For example:

testmachine.example {
hardware ethernet...
4,128
Posted By cstovall
Running ssh on a remote system?
I need to install ypbind and yp-tools on over two-hundred remote client machines based on their redhat version. I have a centralized server on which I created an ssh public key. I then transfered the...
6,483
Posted By cstovall
I have setup a pxe linux server. I am trying to...
I have setup a pxe linux server. I am trying to edit the boot.msg file. I want to customize it using various colors. I need to be able to put a control charcter followed by the color code. For...
6,483
Posted By cstovall
vi : inserting non-printing characters
I am trying to edit a syslinux msg file. I want to precede color codes with control characters. I have tried insert mode, then control v followed by the color code; however, I continue to get " [O "...
Forum: Solaris 08-03-2005
3,925
Posted By cstovall
Sunray dhcp?
I have been given the responsibility of installing, configuring, and administering are new sunray servers. I am not that familiar with Solaris; however, I have done some administration on Linux. I...
Forum: Solaris 07-26-2005
3,722
Posted By cstovall
If I do the data transfer in single-user mode, do...
If I do the data transfer in single-user mode, do I need to use Solaris cd1 and boot cdrom -s. Then mount the each partition from the primary drive, that I want to copy, to the /a directory of the...
Forum: Solaris 07-24-2005
3,722
Posted By cstovall
Upgrading To Larger Disk?
I have just been assigned the task of upgrading to a larger disk on a e250; however, I am use to working on Linux and x86 hardware. I would be very appreciative if someone could inform me on how this...
2,472
Posted By cstovall
There were ^M characters at the end of each line....
There were ^M characters at the end of each line. After removing them the script worked perfectly. Thank you for your help!
2,472
Posted By cstovall
Awk: looping problem!
I am having a problem with awk when I run it with a loop. It works perfectly when I echo a single line from the commandline. For example:

echo 'MFG009 9153852832' | awk '$2 ~...
5,554
Posted By cstovall
SED: Matching a string with whitespace?
I am trying to search through a text file and replace the number 1 at the beginning of the string in the second field with the number 9. There maybe one or more occurrences of whitespace between the...
6,265
Posted By cstovall
Conditional Statements
How can I compare two decimal values within a function using Bash? Function fun2 isn't comparing the decimal values. Is there a way to do this using Bash or Korn?


#!/bin/bash
set -x


x=1...
3,467
Posted By cstovall
Perderabo, Thank you for your help. The...
Perderabo,

Thank you for your help. The script is working perfectly.

One more question, can the datecalc script be used to calculate yesterdays date? Agian, I am dealing with quarter month...
3,467
Posted By cstovall
Perderabo, Thank you for the script. I am...
Perderabo,

Thank you for the script. I am still a novice at shell scripting, so please bear with me. I tried running the script, and I received the following errors. Is this datecalc another...
Showing results 1 to 25 of 78

 
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy