12-06-2012
Thank you very much, it seemed to have worked. Testing it out now
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I really hope someone can help me with this. I have several php files from a forum that I run, that now for some reason have blank lines after every line. Is there an easy way to make a script that does the following:
* If there are consecutive blank lines, delete all of them except one.
* If... (9 Replies)
Discussion started by: KidCactus
9 Replies
2. Shell Programming and Scripting
Hello All, I am having a problem in automating my UNIX Script to remove the blank spaces in between records. When I incorporate it into my script, the output file is deleting the whole content :confused:
Basically this is what I am trying to do:
File contains data like this:... (14 Replies)
Discussion started by: Vinsanity
14 Replies
3. Shell Programming and Scripting
Hi,
I need help to remove blank rows at the end of file.
Sample data:
"Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91
"Tønsberg, Brygga Kino SF",Tønsberg,202-1,Tønsberg SF 4,202-1-4
,,,,
,,,,
,,,,
,,,,
Expected data:
"Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91
"Tønsberg, Brygga... (6 Replies)
Discussion started by: cnraja
6 Replies
4. Shell Programming and Scripting
Hi,
I'm not a expert in shell programming, so i've come here to take help from u gurus.
I'm trying to tailor a csv file that i got to make it work for the LOAD FROM command.
I've a datatable csv of the below format -
--in file format
xx,xx,xx ,xx , , , , ,,xx,
xxxx,, ,, xxx,... (11 Replies)
Discussion started by: dvah
11 Replies
5. Shell Programming and Scripting
Hi,
I am facing a problem related to removing blank lines from a text document.
Input
Error 17-05-2011 11:01:15 VisualSVN Server 2.1 1001
The following information was included with the event:
line3
line4
Error 17-05-2011 11:00:25 VisualSVN Server 2.1 ... (13 Replies)
Discussion started by: mayursingru
13 Replies
6. UNIX and Linux Applications
When I 'vi' my test file I see some blank lines. However once I do :set list to display hidden characters, I see the empty lines literally like this:
^I$
How do I remove them? I cannot find a regex to match them. (3 Replies)
Discussion started by: alexsuv
3 Replies
7. Shell Programming and Scripting
Hello,
I have some data in a text file where fields are separated by blank lines. There are only 6 fields however some fields have several lines of data as I will explain. Also data in a particular field is not consistently the same size but does end on a blank line. The first field start with... (6 Replies)
Discussion started by: vestport
6 Replies
8. Shell Programming and Scripting
I am working on an assignment to pull all the records from excel sheet programatically and use the data for further calculations.
In this process, I first defined 10 records in excel sheet and executed the below code.
In the first run it is OK. But after deleting last few rows in excel sheet and... (0 Replies)
Discussion started by: giridhar276
0 Replies
9. Shell Programming and Scripting
Hi,
Which option is used to remove blank lines in VI (AIX). ?
Regards,
Siva (6 Replies)
Discussion started by: ksgnathan
6 Replies
10. Shell Programming and Scripting
I've spent the past hour trying different things and googling for this solution and cannot find the answer. Found variations of this, but not this exact thing.
I have the following text, which is the output from our mainframe. Each field is on a separate line, with a blank line between each... (7 Replies)
Discussion started by: lupin..the..3rd
7 Replies
LEARN ABOUT REDHAT
runtest
runtest(1) General Commands Manual runtest(1)
NAME
runtest - the DejaGnu test driver program
SYNOPSIS
runtest [ options ]
DESCRIPTION
DejaGnu is a framework for running test suites on GNU tools. It is written in expect, which uses TCL (Tool command language). runtest is
the test driver program; use it to control what tests to run, and variations on how to run them.
You can find a comprehensive description of DejaGnu and runtest in The DejaGnu Testing Framework or its Info version, dejagnu.info.
OPTIONS
--all Print all test output to screen. By default, only unexpected results are displayed.
--baud rate
Set the baud rate for a serial line connection. Some serial interface programs (like tip) don't use this value but instead use a
separate initialization file.
--connect type
The type of connection to use. The choices are rlogin, telnet, rsh, kermit, tip and mondfe.
--debug
Turn on expect internal debugging output. All output is logged to a file called dbg.out. The output of the --strace also goes into
this file.
--help Prints out a help screen and then exits.
--host type
The configuration string for the host.
--ignore test1.exp test2.exp ...
Do not run the specified tests. Electronic mail addresses to receive test results.
--name hostname
The network hostname of the target board.
--objdir path
path is a directory containing compiled test code.
--outdir directory
The name of a directory for test log output.
--reboot
Reboot the target board when runtest initializes (if supported).
--srcdir path
path is a directory containing test directories.
--strace N
Turns on expect internal tracing to N levels deep.
--target type
The configuration string for the target.
--tool toolname
Specify the tool to be tested. toolname controls the test suite applied, and the associated initialization module.
--verbose, -v
Turns on more debugging output from test cases and DejaGnu utility code. Use more than once to increase output further.
--version, -V
Prints out the versions of DejaGnu, expect and Tcl.
-D[number]
Activate the Tcl debugger.number can be either 1 or 0. If it is 1, then the expect shell will break when it starts to run. All ^C's
drop DejaGnu back to the debugger prompt. A 0 starts DejaGnu like normal, but a ^C drops to the debugger prompt.
Any file name on the command line is assumed to be a subset
of the test names to run. Usually these are the names of the expect test driver, ie... special.exp.
Makefile style variables are used to specify tool names and their flags; these and other configuration dependent values are saved in the
file site.exp, created during configuration.
EXIT CODES
runtest sets the exit code to 1 if any of the tests failed, or sets it to 0 if all the tests passed.
SEE ALSO
The DejaGnu Testing Framework (dejagnu.info). This is the DejaGnu manual; its source is the SGML files doc/*.sgml. in the DejaGnu distri-
bution.
AUTHOR
Rob Savoye (rob@welcomehome.org)
08 Dec 1998 runtest(1)