Hi,
I need a script to read the n° character from a text file.
eg: if the text file contains the line "123456" ,I nedd a command to display the number 4, as an example.
I tried with awk and printf but it seems only works with words separated with spaces, but in this case I have only one word... (15 Replies)
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
I've been searching the forums for info on reading a text file in a Cshell script but nothing I'm trying is working. My latest attempt was:
set LASInputFile = `ls *. | head -1`
echo $LASInputFile
while read line
do
echo $line
done < $LASInputFile
My error message is: while:... (7 Replies)
Witam wszystkich ,
Jest to moj pierwszy post i już prośba ale gdybym potrafił zaradzić problemowi to nie zawracałbym nikomu głowy .
mianowicie :
Mam jakis 'plik' w ktorym są osadzone pojedyncze i zmienne słowa po jednym w lini czyli :
test1
tekttw
resst
.... itd.
Moje... (6 Replies)
Folks,
how to read the second word of the first line from a text file. Text file does not have any delimiters in the line and has words at random locations. Basically the text file is a log and i want to capture a number that is in second position.
Appreciate your help
Venu (1 Reply)
I have list of files in a directory 'dir'. Each file is of type HTML. I need to read each file and get the string which starts with 'http' and write them in a new text file. How can i do this shell scripting?
file1.html
<head>
<url>http://www.google.com</url>
</head>
file2.html
<head>... (6 Replies)
I need to take a text file that holds a bunch of data and run each the stuff in it as an input for the program.
the file would hold stuff like this:
thing1.awesomesite.com 80 123.456
thing2.awesomesite.com 80 789.098
thing3.awesomesite.com 80 765.432
...
Now I already know the... (1 Reply)
I dont even have a sample script cause I dont know where to start from. My data lookes like this
> sat#16 #data: 15 site:UNZA baseline: 205.9151
0.008 -165.2465 35.8109 40.6685 21.9148 121.1446 26.4629 -18.4976 33.8722
0.017 -165.2243 48.2201 40.6908 ... (8 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT SUSE
tk::labframe
LabFrame(3) User Contributed Perl Documentation LabFrame(3)NAME
Tk::LabFrame - labeled frame.
SYNOPSIS
use Tk::LabFrame;
$f = $parent->LabFrame(?-label=>text, -labelside=>where, ...?);
DESCRIPTION
LabFrame is exactly like Frame and additionaly allows to add a label to the frame.
WIDGET-OPTIONS
LabFrame supports the same options as the Frame widget.
Additional options of LabFrame are:
-font => font
Specifies the label's font
-foreground => color
Specifies the label's foreground color
-label => text
The text of the label to be placed with the Frame.
-labelside => where
Where can be one of left, right, top, bottom or acrosstop. The first four work as might be expected and place the label to the left,
right, above or below the frame respectively. The acrosstop creates a grooved frame around the central frame and puts the label near
the northwest corner such that it appears to "overwrite" the groove.
-labelvariable => scalar_ref
Specifies a reference to a variable and used as an alternative to -label. If the value of the variable changes, then the widget will be
updated automatically to reflect the change. Used like -textvariable.
ADVERTISED SUBWIDGETS
See "Subwidget" in Tk::mega how to use advertised widgets.
border
Frame used to display the border
frame
Frame used to create new LabFrame children.
label
Label used for displaying text
EXAMPLE
Run the following test program to see this in action:
use strict;
use Tk;
require Tk::LabFrame;
require Tk::LabEntry;
my $test = 'Test this';
my $mw = Tk::MainWindow->new;
my $f = $mw->LabFrame(-label => "This is a label",
-labelside => "acrosstop");
$f->LabEntry(-label => "Testing", -textvariable => $test)->pack;
$f->pack;
Tk::MainLoop;
BUGS
Perhaps LabFrame should be subsumed within the generic pTk labeled widget mechanism.
AUTHOR
Rajappa Iyer rsi@earthling.net
This code is derived from LabFrame.tcl and LabWidg.tcl in the Tix4.0 distribution by Ioi Lam. The code may be redistributed under the same
terms as Perl.
perl v5.12.1 2007-05-05 LabFrame(3)