Hi everyone
I have this script that appends a line to a file to log the running status of an application. I need to write another script to run as a scheduled job in cron to trim the first x number of lines of this file.
Could someone give me an idea how to do this?
Regards (1 Reply)
Hi,
I am trying to find a script command that will let me trim leading and trailing space from a string. I have coded a SQL Select and sending the output to a file. Later I am parsing the file and reading each field. The problem is that each field uses the same size as the DB2 type it was defined... (2 Replies)
Hi,
I want to trim +with leading zero's with amount fields.I know using awk for trimming leading zeros with +,but I want get the entire row itself.
cat file_name |awk -F " " '{printf "%14.4f%f\n",$4}'
ex:
10 xyz bc +00000234.4500
20 yzx foxic +002456.000
Expexted
10 xyz bc... (3 Replies)
Hi,
How can I remove the unwanted spaces in the line.
123456 789 ABC DEF. - I wanna remove the sapces in this line, I need the output 123456789ABCDEF.
Pls help me...... (3 Replies)
I'm trying to parse an output log and I've managed to reduce the output to the lines I need. But I'm having trouble pulling out only the info I'm interested in. The output is 40+ lines and here is a sample
Installing AppFresh 0.8.5.pkg from ./InstallerFiles/CustomPKG/26 (26)
Installing... (2 Replies)
Hi,
I have a string say "whateverCluster".
I need everthing apart from the string "Cluster"
Input:
whateverCluster
Desired output:
whatever (5 Replies)
Hi !
With awk, I would need to trim a string from the beginning up to the first occurrence of "1", then from the beginning up to the second occurrence of "1", then from the beginning up to the third, then the fourth...., then the last occurrence of "1".
input:
1aaa1bb1ccccccc
dd1e1ffff... (7 Replies)
Hi i have a log file
P12345_15728710:DEBUG:Begin
P12345_15728710:DEBUG:Being
P12345_15729310:DEBUG:GetAgen
P12345_15726510:DEBUG:end
i want to trim this file and i want like this
15728710
15728710
15729310
15726510
i tried sed ..but not working..
sed "s/.*P12345__ \(.*\)... (4 Replies)
My files look like this
I need to remove the sequence GGGAAA and anything before that
I also need to remove the sequence AGCCCTA and anything after that
So I will end up with something like this
The left side is done but I cannot get the right side correctly. I would like to use... (3 Replies)
Discussion started by: Xterra
3 Replies
LEARN ABOUT DEBIAN
clit
CLIT(1) General Commands Manual CLIT(1)NAME
clit - program to manipulate Microsoft Reader .LIT files
SYNOPSIS
1. clit [options] litfile.lit subdir/
2. clit [options] oldfile.lit newfile.lit
3. clit [options] oldfile.lit newfile.lit inscription
DESCRIPTION
This manual page documents briefly the clit command.
ConvLIT is a program to convert Microsoft Reader format eBooks [LIT] into an open format. clit supports three modes of operation:
1. Explosion: expanding a LIT file into an OEBPS compliant package, that is the original XML / HTML source.
2. Downconverting: converts to DRM1 format, also known as sealing the LIT file.
3. Inscribing: similar to #2, this adds a label, or inscription, to the ebook to mark that it belongs to you.
OPTIONS
A summary of options is included below. For a complete description, run the program without any arguments.
-d Disable creating multiple subdirectories.
-h Show summary of options.
-k /path/to/keys.txt
The DRM5 key file is assumed to be called keys.txt and located in the current directory. If not, use this option to instruct Con-
vLIT where to find the key file.
AUTHOR
ConvLIT was written by Dan A. Jackson <drs@convertlit.com>.
This manual page was written by Joe Nahmias <jello@debian.org>, for the Debian project (but may be used by others).
March 23, 2008 CLIT(1)