Search Results

Search: Posts Made By: chedlee88-1
1,246
Posted By chedlee88-1
How to create a print filter that print text & image?
Currently, I have a print filter that takes a text file, that convert it into PCL which then gets to a HP printer. This works.

Now I need to embedded a image file within the text file.

I'm...
22,977
Posted By chedlee88-1
That awk script looks complicated. Why...
That awk script looks complicated.

Why don't you break the problem down into several parts?
1) Check if the header exist. Use grep & head
2) Check if the trailer record exist. Use grep & tail...
1,892
Posted By chedlee88-1
> 1)regardless if it can "find" something or not,...
> 1)regardless if it can "find" something or not, the "find" will return 0,how can
> we use "if" to judge not find or find?

You need to be more specific on what you mean here. To find something...
Forum: SCO 10-17-2011
1,868
Posted By chedlee88-1
Wangtek Tape 5125EN SCO Drivers
Does anybody know where I can get Wangtek Tape Drive 5125EN SCO Drivers?

I know that Sco 3.2 r4.2 had it built into the distribution.
1,974
Posted By chedlee88-1
either ls nzrcm* or ls | grep...
either
ls nzrcm*
or
ls | grep "^nzrcm"
1,869
Posted By chedlee88-1
#!/bin/sh while read line do ...
#!/bin/sh

while read line
do
F1=`echo $line | cut -c1-7`
F2=`echo $line | cut -c8-17`
F3=`echo $line | cut -c17-27`
echo "$F1,$F2,$F3"
done
Forum: Solaris 10-17-2011
1,995
Posted By chedlee88-1
Did you backup your box before you did the...
Did you backup your box before you did the install?
5,718
Posted By chedlee88-1
In that case do this. for FILE in `cd sourceDir...
In that case do this.
for FILE in `cd sourceDir ; ls -1 *.rrd`
do
rrdtool dump "$FILE" > "/path/to/$FILE.xml"
done

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code)...
Forum: Programming 10-17-2011
1,454
Posted By chedlee88-1
Details.. Details..... If you have some...
Details.. Details.....

If you have some sample code of what you have written, it will certainly help out to understand your issue.
5,718
Posted By chedlee88-1
You may want to put in some checks like 1)...
You may want to put in some checks like
1) check to see if the /backup/cacti_xml directory exist
2) check to see if the /var/www/html/rra directory exist
3) Also, you may want to dump your...
Forum: SCO 10-17-2011
12,692
Posted By chedlee88-1
SCO Unix OpenServer 5.0.5 Media Kit
My client has lost the SCO OS 5.0.5 install media.

However, they do have a working SCO 5.0.5 system, but is crumbling apart.

Where can I find the SCO OS 5.0.5 install media?
Or can I get...
18,141
Posted By chedlee88-1
Yeah. This will work. However, why would...
Yeah. This will work.

However, why would you want to program it this way?
It looks really complicated.
1,074
Posted By chedlee88-1
wc -l test1.txt >> test2.txt
> wc -l test1.txt >> test2.txt

This is the most simpliest way of doing.
2,204
Posted By chedlee88-1
Does DOS has a terminal or pseudo terminal?
> I am wondering if the DOS console works like the unix terminal?

The answer is yes & no.

DOS is an operating system, which use text base console.
Plus, it is a single user OS.

Unix...
18,141
Posted By chedlee88-1
Re: Adding header and trailer into a file
#!/bin/sh

for i in filelist*
do
NUMCHAR=`cat $i | wc -c`
echo "ABC,$NUMCHAR" >${i}.new
cat $i >>${i}.new
done


Video tutorial on how to use code tags in The UNIX and Linux...
Showing results 1 to 15 of 15

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