Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Search for & edit rows & columns in data file and pipe Post 302301286 by tintin72 on Thursday 26th of March 2009 11:52:03 AM
Old 03-26-2009
thanks. but your suggestion did not help. The first thing is that I get the error message "( FILENAME=xxx.dat FNR=1) fatal: expression for >> has null string value"
The second this is that it seems that you are trying to pipe the contents of $0 into n. In which case we would end up with only a single file. What I want is 3 separate files e.g

file 1: car

01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y z

file 2 :car

01 30 200
02 31 400
03 57 121
.. .. ..
.. .. ..
n y z

and so on. thanks.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

deleting rows & columns form a csv file

Hi , I want to delete some rows & columns from file. can someone please help me on this? Regards. (2 Replies)
Discussion started by: code19
2 Replies

2. Shell Programming and Scripting

How do I search first&second string & copy all content between them to other file?

Hi All, How do I search first string & second string and copy all content between them from one file to another file? Please help me.. Thanks In Advance. Regards, Pankaj (12 Replies)
Discussion started by: pankajp
12 Replies

3. UNIX for Dummies Questions & Answers

selective concatenation of rows & columns

Dear unix gurus, I have a data file that looks something like this ... x y x y x y x y x y 0 3836 30 3915 60 5984 90 7388 120 8385 150 9038 180 9453 210 9745 240 9906 270 9962 300 9953 330 9915 350 9887 ... (22 Replies)
Discussion started by: tintin72
22 Replies

4. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

5. Shell Programming and Scripting

Script to Check & Edit Content of a file (Addition of comma in each lines of code)

Hi all, I need to write an automated bash shell script which performs such operations: 1. Grep the header of everyline with the initial of "T" in "FILE_A" 2. Perform a for loop, Count the numbers of comma in the line of code, if (no. of comma < 17) ADD the comma until 17; ... (2 Replies)
Discussion started by: big_nutz
2 Replies

6. Shell Programming and Scripting

awk/sed to search & replace data in first column

Hi All, I need help in manipulating the data in first column in a file. The sample data looks like below, Mon Jul 18 00:32:52 EDT 2011,NULL,UAT Jul 19 2011,NULL,UAT 1] All field in the file are separated by "," 2] File is having weekly data extracted from database 3] For eg.... (8 Replies)
Discussion started by: gr8_usk
8 Replies

7. Shell Programming and Scripting

Sort a the file & refine data column & row format

cat file1.txt field1 "user1": field2:"data-cde" field3:"data-pqr" field4:"data-mno" field1 "user1": field2:"data-dcb" field3:"data-mxz" field4:"data-zul" field1 "user2": field2:"data-cqz" field3:"data-xoq" field4:"data-pos" Now i need to have the date like below. i have just... (7 Replies)
Discussion started by: ckaramsetty
7 Replies

8. Shell Programming and Scripting

Perl script to get info from specific rows & columns (.xls file)

Hi all, I want to read some specific rows & columns in the .xls file with my script to get the data to be manipulated. Now, I can read the .xls file correctly & i can go to the specific sheet that I want but i have a problem to specify the specific rows & columns. I mean, I want to get the info... (0 Replies)
Discussion started by: Yohannita
0 Replies

9. Shell Programming and Scripting

search & merg data from 3 files

i have 3 files which contains as below (example): yy-mm-dd hh:mm:sec lat lon depth mag 2006-01-01 23:17:26.80 39.8405 41.8795 2.0 3.3 2006-01-06 00:10:26.80 39.9570 41.2130 5.0 3.3 2006-01-06 06:59:02.10 39.4099 44.6065 10.0 3.7 2006-01-06 13:49:52.70... (4 Replies)
Discussion started by: oreka18
4 Replies

10. Shell Programming and Scripting

How to remove new line characters from data rows in a Pipe delimited file?

I have a file as below Emp1|FirstName|MiddleName|LastName|Address|Pincode|PhoneNumber 1234|FirstName1|MiddleName2|LastName3| Add1 || ADD2|123|000000000 2345|FirstName2|MiddleName3|LastName4| Add1 || ADD2| 234|000000000 OUTPUT : ... (1 Reply)
Discussion started by: styris
1 Replies
as3compile(1)							     swftools							     as3compile(1)

NAME
as3compile - Compile .as ActionScript 3.0 files to swf. Synopsis as3compile file.as [-o file.swf] DESCRIPTION
Compiles a file written in ActionScript 3.0 to a SWF file. OPTIONS
-h, --help Print short help message and exit -V, --version Print version info and exit -v, --verbose Increase verbosity -q, --quiet Decrease verbosity -C, --cgi Output to stdout (for use in CGI environments) -R, --resolve This flag will cause the compiler to try filenames like "FooBar.as" for classes named "FooBar". -D, --define namespace::variable Set a compile time variable (for doing conditional compilation) -X, --width Set target SWF width -Y, --height Set target SWF width -r, --rate Set target SWF framerate -M, --mainclass Set the name of the main class (extending flash.display.MovieClip) -l, --library file Include library file file. <file> can be an .abc or .swf file. -I, --include dir Add additional include dir dir. -N, --local-with-network Make output file "local with networking" -L, --local-with-filesystem Make output file "local with filesystem" -T, --flashversion num num must be >= 9. -o, --output filename Set output file to filename. EXAMPLE
The following is a basic as3 file that can be compiled e.g. with as3compile -X 400 -Y 400 smiley.as // smiley.as package { import flash.display.MovieClip public class Main extends MovieClip { function Main() { this.graphics.beginFill(0xcccc00) this.graphics.drawCircle(200,200,200) this.graphics.endFill() this.graphics.beginFill(0x000000) this.graphics.drawCircle(140,150,50) this.graphics.drawCircle(260,150,50) this.graphics.drawRoundRect(140,270,120,10,20); this.graphics.endFill() } } } AUTHOR
Matthias Kramm <kramm@quiss.org> as3compile February 2012 as3compile(1)
All times are GMT -4. The time now is 06:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy