In the post Retrieve column from file using cut utility in linux written on http://arjudba.blogspot.com/2009/04/retrieve-column-from-file-using-cut.html
it is discussed about the cut utility. The same example is used in this post. The paste command is used to merge lines together. For example in the cut example I made two files named id.txt and grade.txt. In this example I will merge them into one using paste utility.
The syntax of using paste utility is,
paste {file1} {file2}
The first line of file2 is appended to the first line of file1.
The second line of file2 is appended to the second line of file1 and so on.
Now we will make a file named id_grade.txt that will merge two files named id.txt and grade.txt generated in http://arjudba.blogspot.com/2009/04/retrieve-column-from-file-using-cut.html
To do so issue,
# paste id.txt grade.txt > id_grade.txt
Let's see the information inside id_grade.txt
# cat id_grade.txt
024401 4.98
022401 3.98
021401 4.76
024402 4.02
022402 3.99
Related Documents
http://arjudba.blogspot.com/2009/04/retrieve-column-from-file-using-cut.html
Thursday, April 23, 2009
Subscribe to:
Post Comments (Atom)
Tag Cloud
10.2g
10g
11g
11gR2
Abasa
About Oracle
Administration
Adsense
Alerts
Archival
ASM
ASP.Net
Audit
Audit Vault
Backup
Bangladesh
Block Corruption
Blogger
Browser
Bug
Business
Clone
Clusterware
Comments
Concepts
Connection
Controlfiles
Crime
CSS
Data Block
Data Dictionary
Data Guard
Data Mining
Data Pump
Data Type
Database Administration
Database Vault
DBConsole
Developer
Economics
EM
Excel
Exercise
Explain plan
Export
External Table
Facebook
Firefox
Firmware
Flashback
Forum
Functions
Games
Globalization Support
Grid Control
Hardware
History
HTML
IE
Import
Indexes
initializaion parameter
initialization parameter
Installation
Internals
Internet
Interview
isql*plus
Java
JavaScript
Job
Joins
Joke
Limitation
Linux
Listener
Logminer
Magento
Mail
Materialized View
Medical
Memory
Mobile
Money
Multimedia
MySQL
Net Services
Network
OCP
Operators
Oracle
Oracle Concepts
Oracle Recovery
OS
Others
OUI
Package
Packages
Parameters
Partitioning
Patchset
Performance
Perl
Pfile
Photos
PHP
PL/SQL
Profile
Pseudocolumns
Puzzle
Quiz
Quota
RAC
RAC Installation
Recovery
Recovery Problems
Redo Log
Reports
RMAN
Scripts
Security
SEO
Server Administration
SGA
Shell Script
Smarty
Social Marketing
Solaris
Spfile
SQL
SQL Tuning
SQL*Loader
Sql*Plus
Startup Problem
Streams
SwingBench
System Analysis
Tablespaces
Technology
Temp
TNS Error
Tools
Troubleshooting
Tuning
Undo
UNIX
Upgradation
Utilities
Version
Views
Vmware
Windows
Wordpress
XML
No comments:
Post a Comment