I know this must be really easy, but i can't get it to work
I've got a perl script, with a file.
I want to print an empty line, and the following doesn't seem to work:
print nameoffile "\n"
thanks for your help!! (3 Replies)
I have a script with this statement:
/usr/xpg4/bin/awk -F"" 'NR==FNR{s=$2;next}{printf "%s\"%s\"\n", $0, s}' LOOKUP.TXT finallistnew.txt >test.txt
I want to include logic or an additional step that says if there is no data in field 3, move the whole line out of test.txt into an additional... (9 Replies)
I know it looks like a stupid question, but i really wanna know the reason.
Actually, i think it's because the c compiler will detect it as the end of file "EOF" of the program, but, am i wrong? because it compiles it anyway, but keep showing warnings like "no new line at the end of file".
I... (8 Replies)
Hello,
I'm trying to only print out the file systems that are greater than 90% full.
So far I've got:
df -k >sawky8
cat sawky8 | grep -v Filesystem | sed "s/%//g;" >sawky9
cat sawky9 | awk '{print $4}' | read stot
print $stot
if ;then
echo $LINE
Problem is it stops after the first... (2 Replies)
I am using following code to delete all the empty sub dirs from the inputted dir $1.
Before deleting empty dirs, I want to print those dirs which are going to be deleted.
Can this be done with little modification in following code
#!/bin/sh
if ; then
echo "Searching '$1' dir for empty... (16 Replies)
Hi All,
I am searching for a script which will produce an output file with the uniq first field with the second field having highest value among all the duplicates..
The output file will produce only the uniqs which are duplicate 3 times..
Input file
X 9
B 5
A 1
Z 9
T 4
C 9
A 4... (13 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Hi all,
I've got a file that has 12 fields. I've merged 2 files and there will be some duplicates in the following:
FILE:
1. ABC, 12345, TEST1, BILLING, GV, 20/10/2012, C, 8, 100, AA, TT, 100
2. ABC, 12345, TEST1, BILLING, GV, 20/10/2012, C, 8, 100, AA, TT, (EMPTY)
3. CDC, 54321, TEST3,... (4 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT ULTRIX
color
plot(3x)plot(3x)Name
openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl, box, color, dot - graphics interface
Syntax
openpl()
erase()
label(s)
char s[];
line(x1, y1, x2, y2)
circle(x, y, r)
arc(x, y, x0, y0, x1, y1)
move(x, y)
cont(x, y)
point(x, y)
linemod(s)
char s[];
space(x0, y0, x1, y1)
closepl()
box(x0, x1, y0, y1)
color(c)
dot()
Description
These subroutines generate graphic output in a device-independent manner. See for a description of their effect. The subroutine precedes
the other subroutines as it opens the device for writing. The subroutine flushes the output. The and routines are used by the lvp16 and
hp7475a plotters only.
String arguments to and are null-terminated and do not contain newlines.
Many of these functions have additional options for different output devices. They are accessed by the options as follows:
-lplot device-independent graphics stream on standard output for filters
-lplotaed AED 512 color graphics terminal
-lplotbg BBN bitgraph graphics terminal
-lplotdumb dumb terminals without cursor addressing or line printers
-lplotgigi gigi graphics terminal
-lplotgrn grn files
-lplot2648 HP 2648 graphics terminal
-lplot7221 HP 7221 graphics terminal
-lplotimagen Imagen laser printer (default 240 DPI resolution)
-l300 GSI 300 terminal
-l300s GSI 300S terminal
-l450 DASI 450 terminal
-l4013 Tektronix 4013 terminal
-l4014 Tektronix 4014 terminal
-llvp16 DEC LVP16 and HP7475A plotters
See Alsograph(1g), plot(1g), plot(5)plot(3x)