08-01-2006
One way is to actually truncate the file after you take the output. That way, you don't have to worry about the older contents at all. Or you could write a script to check the number of lines in the file when you actually take the output and then keep taking the output from that point on.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello!
I'm using a perl script which calls the time and
date from a remote server using the line
/bin/date -
What is needed in this line to
reduce the output time
5 hours?
Thanks (2 Replies)
Discussion started by: Texan
2 Replies
2. UNIX for Dummies Questions & Answers
tr "" "" | sort | awk 'length($0)>0' | uniq -c (1 Reply)
Discussion started by: brain_full
1 Replies
3. UNIX for Dummies Questions & Answers
I am trying to write a script that will remove any line in 2 given text files
starting with '-'.
the output should be to the second file.
this is what I tried:
#!/bin/csh -f
cat $1 $2 | grep -v '^-' > $2
the problem is the after executing the script, file2 contains only the
lines from... (7 Replies)
Discussion started by: stewie griffin
7 Replies
4. Shell Programming and Scripting
Every day a new .zip file is uploaded to a folder and at mid-night the zip file is to be extracted into a /data/ folder, inside a date-named folder.
# This should extract the contents of a zip file into the /data/ folder into a date based folder
/usr/bin/unzip -a -o... (15 Replies)
Discussion started by: worchyld
15 Replies
5. Shell Programming and Scripting
Hi Frens,
I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time
i dont want my list to contain the latest files which are ... (4 Replies)
Discussion started by: Prat007
4 Replies
6. Shell Programming and Scripting
This is Input - starts with Storage Group Name and ends with Shareable and the loop continues all I need is Storage group name and Alu numbers in the below output format requested.
Storage Group Name: abcd
Storage Group UID: 00:00:000:00:0:0:0
HBA/SP Pairs:
HBA UID ... (6 Replies)
Discussion started by: maddysa
6 Replies
7. Shell Programming and Scripting
Hi Guys,
Good day! I hope you could help me on this, I have a file that conatins output upon executing cat /var/log/messages, then what I want is to get the logs that has been generated only starting from 24-hours earlier at the time of actual execution of the script. Is this possible?
Best... (9 Replies)
Discussion started by: rymnd_12345
9 Replies
8. Shell Programming and Scripting
Hi All,
Actually we want to know the command need to use if the difference between two files are null, then it should not send as mail. Oterwise it should send as mail alert.
Below for your reference,
# Email the spoolfile.
diff free_sp_new.log free_sp_old.log
if output of above... (1 Reply)
Discussion started by: thanvir.akram
1 Replies
9. Shell Programming and Scripting
been messing around with linux for a few months...not too good yet. thinking about taking a class or something, this #### is hard.......anyway, im trying to make an output file using the input from a prompt. heres basically what i have now (random example)
echo -n "Please enter your name: "
read... (7 Replies)
Discussion started by: rickbobb4444
7 Replies
10. UNIX for Dummies Questions & Answers
Hi all,
I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name, but it doesn't work. Thanks for any help.
fnam=(japan usa uk)
alldata.dat contained sample data... (1 Reply)
Discussion started by: ida1215
1 Replies
LEARN ABOUT CENTOS
t1ascii
T1ASCII(1) General Commands Manual T1ASCII(1)
NAME
t1ascii - convert PostScript Type 1 font from binary to ASCII
SYNOPSIS
t1ascii [-l length] [input [output]]
DESCRIPTION
t1ascii converts Adobe Type 1 font programs in PFB (binary) format to PFA (hexadecimal) format. If the file output is not specified output
goes to the standard output. If the file input is not specified input comes from the standard input.
OPTIONS
--line-length=num, -l num
Set the maximum length of encrypted lines in the output to num. (These are the lines consisting wholly of hexadecimal digits.) The
default is 64.
--warnings, -w
Warn when the input font contains lines longer than 255 characters. Long lines don't strictly conform to Adobe's Document Structuring
Conventions, and may cause problems with older software.
SEE ALSO
t1binary(1), t1unmac(1), t1mac(1), t1asm(1), t1disasm(1)
Adobe Type 1 Font Format
AUTHORS
Lee Hetherington (ilh@lcs.mit.edu)
Eddie Kohler (ekohler@gmail.com)
Ported to Microsoft C/C++ Compiler and MS-DOS operating system by Kai-Uwe Herbing (herbing@netmbx.netmbx.de).
Version 1.37 T1ASCII(1)