Search Results

Search: Posts Made By: seismic_willy
2,384
Posted By seismic_willy
We use the command: startx
We use the command: startx
9,482
Posted By seismic_willy
formating array file output using perl
Hello,

I am trying to output the values in an array to a file. The output needs to be formated such that each array value is left jusified in a field 8 character spaces long. Also, no more than...
32,336
Posted By seismic_willy
Try to redifine your variables with backslashes...
Try to redifine your variables with backslashes in front of your forward slashes:

VAR='\/app\/share\/eai'
VAR1='\/app\/share'
VAR2='\/data\/test'

sed -e "s/$VAR1/$VAR2/" $VAR > newfile

The...
3,282
Posted By seismic_willy
Use double quotes, the shell is interpreting your...
Use double quotes, the shell is interpreting your variable as a two part string.




ll | grep "$day"
9,723
Posted By seismic_willy
You could try this in your script: sed -e...
You could try this in your script:

sed -e '1d
24d
35d' $file > $file.tmp
/usr/bin/mv $file.tmp $file
/usr/bin/rm $file.tmp

This will delete lines 1, 24, and 35 from your file. ...
4,831
Posted By seismic_willy
terminal display
I want to display a system warning message at the prompt of every live terminal on a sun solaris 8 machine using CDE.

I know this can be done on a console, but what about dtterm and xterm regular...
2,452
Posted By seismic_willy
Anyone for a little perl?
I'm writing a perl program that outputs three separate files. The basic format is:



open(FILE1,">file1");
print FILE1 text;
...
close(FILE1);

open(FILE2,">file2");
print FILE2 text;...
6,018
Posted By seismic_willy
Here's one that might help: xstart=`date...
Here's one that might help:

xstart=`date '+%j'`
xend=`expr $xstart - 30`
while [ $xstart -gt $xend ] ; do
if [ $xstart -lt 10 ]; then
echo 00"$xstart"
elif [ $xstart -lt 100 ]; then
echo...
2,738
Posted By seismic_willy
Thanks again edog.
Thanks again edog.
2,738
Posted By seismic_willy
perl variable assingment
I want to assign the current user to a variable in my perl script.

My first attempt using Solaris 8 (perl 5) is:

$VAR = system(logname);

However, this assigns 0 to $VAR, and outputs the user...
27,675
Posted By seismic_willy
chomp and chop in perl
What is the differnece between chomp and chop in perl?
Showing results 1 to 11 of 11

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