02-02-2012
Post an example of the input file and the desired output.
Please use code tags.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file which contains records of data.
I need to split the file into multiple files depending upon the value of last field.
How do i read the last field of each record in the file???
Regards,
Chaitrali (4 Replies)
Discussion started by: Chaitrali
4 Replies
2. Shell Programming and Scripting
Input file content:
NA_10001
XA_10081
NG_10015
AC_1321.1
.
.
Desired output file:
ls *.txt
NA_10001.txt
XA_10081.txt
NG_10015.txt
AC_1321.1.txt
cat NA_10001.txt
NA_10001
cat XA_10081.txt
XA_10081 (1 Reply)
Discussion started by: perl_beginner
1 Replies
3. Shell Programming and Scripting
Hi All;
I have input file like below
name char(3)
number number(3)
inputfile
namenumber
xyz123abc509kai330
aca203
ald390afa000als303
I wanted to split like below:-
output like this:-
xyz123
abc509
kai330
aca203
ald390 (6 Replies)
Discussion started by: Jairaj
6 Replies
4. Shell Programming and Scripting
Input file:
cat input_file.txt
data_1 2342
data_3 242
data_1 3546
data_5 458
data_10 342
data_30 42
data_10 346
content_50 48
content_1 2343
Desired output:
cat output_file1.txt
data_1 2342
data_3 242
data_1 3546
data_5 458 (2 Replies)
Discussion started by: perl_beginner
2 Replies
5. Shell Programming and Scripting
Hi
I have a large text file and I want to split its content into multiple flies.
this large file contains several blocks of codes separated by a comment line for each block.
this comment line represents a directory path
So, when separate these blocks each into a separate file, This output... (7 Replies)
Discussion started by: turki_00
7 Replies
6. Shell Programming and Scripting
Dear All,
I have the following file tabulated:
ID distanceTSS score
8434 571269 10
10122 393912 9
7652 6 10
4863 1451 9
8419 39 2
9363 564 21
9333 7714 22
9638 8334 9
1638 1231 11
10701 918 1000
6587 32056 111
What I would like to do is the following, create 100 new files based... (5 Replies)
Discussion started by: paolo.kunder
5 Replies
7. Shell Programming and Scripting
Hello,
I'm using Windows 7 ; sed, awk and gnuwin32 are installed.
I have a big text file I need to manipulate.
In short, I will have to split it in thousands of short files, then rename and save in a folder which name is based upon filename.
Here is a snippet of my big input.txt file (this... (4 Replies)
Discussion started by: sellig
4 Replies
8. Shell Programming and Scripting
Hi All,
we have a requirement to split a content in a text file every 5 rows and write in a new file .
conditions:
if 5th line falls between center of the statement . it should look upto after ";"
files are below format:
1 UPDATE TABLE TEST1 SET VALUE ='AFDASDFAS'
2 WHERE... (3 Replies)
Discussion started by: KK230689
3 Replies
9. Shell Programming and Scripting
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns
Continue here./mod]
Please read forum... (1 Reply)
Discussion started by: Jairaj
1 Replies
10. UNIX for Beginners Questions & Answers
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns (6 Replies)
Discussion started by: Jairaj
6 Replies
RAILS(1) BSD General Commands Manual RAILS(1)
NAME
rails -- Web-application framework
SYNOPSIS
rails path [options...]
DESCRIPTION
Rails is a web-application and persistence framework that includes everything needed to create database-backed web-applications according to
the Model-View-Control pattern of separation. This pattern splits the view (also called the presentation) into "dumb" templates that are pri-
marily responsible for inserting pre-built data in between HTML tags. The model contains the "smart" domain objects (such as Account, Prod-
uct, Person, Post) that holds all the business logic and knows how to persist themselves to a database. The controller handles the incoming
requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view.
Rails is written with the ruby(1) language. For more information about Rails you can use its ---help flag. There is also online documentation
available at "http://rubyonrails.org".
SEE ALSO
ruby(1) mongrel_rails(1) cap(1)
AUTHORS
Rails was created by David Heinemeier Hansson <david@loudthinking.com> then extended and improved by hundreds of open-source contributors.
BSD
February 27, 2006 BSD