I have a forloop which checks a log for a set of 6 static IP addresses and each IP found is logged to a file which is then mailed to me.
After the forloop I always have a text file that may contain up to 6 IP addresses or may contain 0.
What I want to do is substitute the IP addresses (if any)... (2 Replies)
Hi all
I run my program prog.c in the following way :
$ ./prog 1 > output.txt where 1 is a user defined initial value used by the program.
But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in different files.
Like
$ ./prog 1... (1 Reply)
I'd like to parse TOP output file containing data like the below, and then be able to import the parsed file in to Excel where I can easily generate graphs. Ideally, the output would have a single column for each value in the output.
Any thoughts on how to get started with this, or a better... (3 Replies)
Hi Guys..
Need your help to format the output of my shell script.
I am using spool command to take out put in csv file.
below is my code. (for example)
col USERNAME for a15
col EMAIL for a30
col FULL_NAME for a20
col LAST_LOGIN for a40
col DATE_CREATED for a40
SPOOL 120.csv... (3 Replies)
I am facing a problem formatting the output of my shell script in excel.
We are directing the output of the script to an excel sheet and need long integer type data printed in Excel as it is (i.e. not in the default scientific notation).
Also, leading zeroes(if any) in the output are getting... (4 Replies)
Hello,
I have a single text file with three columns like:
2 1 10
3 6 11
4 4 12
5 5 13
6 8 14
I was wondering how I can run a shell script to (do loop) to read the first point in the first column , compare it with all the points in the second column and if they are the same,... (12 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Hi All,
I have below perl script which writes xml from .xls file.
Now i want to add below two conditions in this script :
1. to check if the the input .xls file has ony two columns , if more tahn two columns then script should pop up an error.
2. If there are two columns , then first column... (4 Replies)
Hi, I have a shell script which analyses the log folder for a specific string and throws me the output. I have used for loop since it does this in multiple servers. Now I want to save the output in a excel in the below format. Can someone please help?
The output which I get
Server1 : count... (1 Reply)
Discussion started by: srilaxman
1 Replies
LEARN ABOUT SUSE
tabify
textutil::tabify(n) Text and string utilities, macro processing textutil::tabify(n)
__________________________________________________________________________________________________________________________________________________NAME
textutil::tabify - Procedures to (un)tabify strings
SYNOPSIS
package require Tcl 8.2
package require textutil::tabify ?0.7?
::textutil::tabify::tabify string ?num?
::textutil::tabify::tabify2 string ?num?
::textutil::tabify::untabify string ?num?
::textutil::tabify::untabify2 string ?num?
_________________________________________________________________DESCRIPTION
The package textutil::tabify provides commands that convert between tabulation and ordinary whitespace in strings.
The complete set of procedures is described below.
::textutil::tabify::tabify string ?num?
Tabify the string by replacing any substring of num space chars by a tabulation and return the result as a new string. num defaults
to 8.
::textutil::tabify::tabify2 string ?num?
Similar to ::textutil::tabify this command tabifies the string and returns the result as a new string. A different algorithm is used
however. Instead of replacing any substring of num spaces this command works more like an editor. num defaults to 8.
Each line of the text in string is treated as if there are tabstops every num columns. Only sequences of space characters containing
more than one space character and found immediately before a tabstop are replaced with tabs.
::textutil::tabify::untabify string ?num?
Untabify the string by replacing any tabulation char by a substring of num space chars and return the result as a new string. num
defaults to 8.
::textutil::tabify::untabify2 string ?num?
Untabify the string by replacing any tabulation char by a substring of at most num space chars and return the result as a new
string. Unlike textutil::tabify::untabify each tab is not replaced by a fixed number of space characters. The command overlays each
line in the string with tabstops every num columns instead and replaces tabs with just enough space characters to reach the next
tabstop. This is the complement of the actions taken by ::textutil::tabify::tabify2. num defaults to 8.
There is one asymmetry though: A tab can be replaced with a single space, but not the other way around.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
regexp(n), split(n), string(n)
KEYWORDS
formatting, string, tabstops
textutil 0.7 textutil::tabify(n)