output:
I think sed will have no issues for 3200 chars.
But, for 200 fields/column the command will be really huge.
Just like AWK it will have to be written to a file and invoked.
I'm reading 2 input files but not getting expected value.
I should get an alpha value on file_1_data but not getting any.
Please help.
>cat test6.sh
awk '
FILENAME==ARGV { file_1_data=$0; print "----- 1 Line " NR " -----" $1; next }
FILENAME==ARGV { file_2_data=$0; print "----- 2... (1 Reply)
Hi people. I am new to shell scripting, so I need a little help. I want to create a script named that takes an argument as a file, Read the input file and look for occurrences of the current username (say abc.xyz) who is executing the script. On finding an occurrence of the username take that line... (2 Replies)
After pouring over my LTKS and Unix in a nutshell, I'm stuck!
I have a large (BMC Report File) that has breaks on DM (district managers).
After a report header, there is a DM header like:
DM: DBP AARON ROBERTS
At the end of each DM break, there is:
** END OF REPORT **
... (6 Replies)
Hi All,
I am very new to awk script writing. I have two files(file1 and file2) containing some numbers. I want divide the numbers in file1 with those in file 2 line wise.
is it possible to simultaneousely read the information from both files and carry put the division.
Thanks a lot in... (6 Replies)
hi,
Is it possible to read and compare 2 files which have different Field separators at the same time using awk???
file1:
1,dayal,maruti,Z-234,bangalore,KA,........
2,yash,esteem,Y-007,delhi,DL,...........
.
.
.
fill 2:
Z-234|Registered|Bangalore
Y-007|Registered|Bangalore
.
.
.
... (2 Replies)
Hi ,
I have a awk script to read a file using getline, but when its not able to recognize the path of the file. I am working on solaris unix.
nawk -F'|' '
BEGIN{
FILE1="/input_files/temp.txt"
}
I have to place my script in the same folder i.e /input_files/ for my script to work.
... (2 Replies)
Dear Shell scripters,
I have a small code which copy the txt files from some destination to file name OutPutFile.
I want to modify this script to introduce several constant.
The string it is reading is like
... (2 Replies)
Hi everyone,
I am trying to write a bash script which reads a data file and does some algebraic operations.
here is the structure of data.xml file that I have;
1 <data>
2 .
3 .
4 .
5 </data>
6 <data>
7 .
8 .
9 .
10</data>
etc.
Each data block contains same number of lines (say... (4 Replies)
Hi, I wanted to add each row of file2.txt to entire length of file1.txt given the sample data below and save it as new file. Any idea how to efficiently do it. Thank you for any help.
input file
file1.txt file2.txt
140 30 200006 141 32
140 32 200006 142 33
140 35 200006 142... (5 Replies)