i am writing a script that reads in a file and i just want it to print each element on a new line here is my code and the data that i want to read in
#!/usr/bin/perl
use strict;
use CGI qw(:standard);
use CGI qw(:cgi);
my $data_file = "/tmp/results.txt";
my $configuration;
my... (3 Replies)
Hi All,
I have been trying to re-arrange the below data using AWK or Perl.
Can anybody help me ?
Thanks in advance.
Input:
111 222
333 444
AAA BBB
CCC DDD
555 666
777 888
EEE FFF
GGG HHH
Output: (6 Replies)
Hi
I have to convert the data in a file
*******
01-20-09 11:14AM 60928 ABC Valuation-2009.xls
01-20-09 11:16AM 55808 DEF GHI Equation-2009.xls
01-20-09 11:02AM 52736 ABC DF Valuation-2009.xls
01-20-09 11:06AM 89600 THE... (6 Replies)
I want to check whether if any column data has any + , - , = prefixed to it then convert it in such a form that in excel its not read as formula.
echo "$DATA" | awk 'BEGIN { OFS="," } -F" " {print $1,$2,$3,$4,$5,$6,$7,$8.$9,$10,$11,$12}' (4 Replies)
Hello everybody,
I have a file containing some statistics regarding CPU usage. The file has this syntax :
Fri Jul 16 14:27:16 EEST 2010
Cpu(s): 15.2%us, 1.4%sy, 0.0%ni, 82.3%id, 0.1%wa, 0.0%hi, 0.9%si, 0.0%st
Fri Jul 16 15:02:17 EEST 2010
Cpu(s): 15.3%us, 1.4%sy, 0.0%ni, 82.3%id, ... (9 Replies)
Hi,
I have data coming in like below. Not all data is like that, these are the problem records that is causing the ETL load to fail. Can you pls help me with combining theese broken records!
001800018000000guyMMAAY~acct name~acct type~~"address part 1
address... (8 Replies)
HI
I want to make it single row if start with braces i.e. { .Any idea
{1:XXX2460275191}{2:SEC00687921131112201641N}{3:{58910}}{4:
:R:GENL
:C::xx//xx1
:20C::yy//yy1
:2S:xxT}
{1:XXX2460275190}{2:SEC00687921131112201641y}{3:{58911}}{4:
:z:GENL
:v::xx//xx1
:10C::yy//yy1
:4S:xxT
... (2 Replies)
Need assistance on the data extraction using awk
Below is the format and would like to extract the data in another format
-------------------------------------------------------------------------------------------------
Minimum Temperature (deg F )
DAY 1 2 3 4 5 6 7 8 9 10 11... (4 Replies)
Discussion started by: ajayram_arya
4 Replies
LEARN ABOUT BSD
as
AS(1) General Commands Manual AS(1)NAME
as - assembler
SYNOPSIS
as [ -u ] [ -V ] [ -o objfile ] file ...
DESCRIPTION
As assembles the concatenation of the named files. The options are:
-u Treat all undefined symbols in the assembly as external globals.
-V Produce an object suitable for loading into an automatic text overlaid program.
-o Use objfil for the name of the resultant object. If this is omitted, a.out is used. If no errors occurred during the assembly and
if there were no unresolved external references, it is made executable.
The special file name -- serves two purposes. It signals the end of all options and causes stdin to be read for input. Thus it is now
possible to pipe data to the assembler:
/lib/cpp -E foo.s | sed -e ';^#;/;' | as -o foo.o --
The file name -- may be placed between normal files, when EOF is detected on stdin the next file in the argument list is opened and read.
If no input files are specified then stdin is read.
FILES
/tmp/atm1 temporary
a.out object
SEE ALSO adb(1), ld(1), nm(1), a.out(5)
UNIX Assembler Manual by D. M. Ritchie
DIAGNOSTICS
When an input file cannot be read, its name followed by a question mark is typed and assembly ceases. When syntactic or semantic errors
occur, a single-character diagnostic is typed out together with the line number and the file name in which it occurred. Errors in pass 1
cause cancellation of pass 2. The possible errors are:
) Parentheses error
] Parentheses error
< String not terminated properly
* Indirection used illegally
. Illegal assignment to `.'
a Error in address
b Branch instruction is odd or too remote
e Error in expression
f Error in local (`f' or `b') type symbol
g Garbage (unknown) character
i End of file inside an if
m Multiply defined symbol as label
o Word quantity assembled at odd address
p `.' different in pass 1 and 2
r Relocation error
u Undefined symbol
x Syntax error
BUGS
Syntax errors can cause incorrect line numbers in following diagnostics.
3rd Berkeley DistributionAS(1)