Answer Posted / subhash
1. patterns finding and replacing..
SED -n '1,$p' file_name ----> displays 1st & last line
SED -n '1,$d' file_name ----> deletes from O/P 1st & last
line. etc
2. First N records & last N records
HEAD -5
TAIL -5
3. to find word/line count in file
WC -l--- no of line
WC -w--- no of words count
4. AWK, FIND, CUT etc are also useful
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can you explain players in datastage?
What is the method of removing duplicates, without the remove duplicate stage?
What is the precedence of stage variables,derivations, and constraints?
On which interface you will be working as a developer?
What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?
What are orabulk and bcp stages?
How do y read Sequential file from job control?
how do u catch bad rows from OCI stage? And what CLI stands for?
What are the types of containers and how to create them?
How can we improve the performance in datastage?
Which commands are used to import and export the datastage jobs?
What are the types of containers?
in oracle target stage when we use load option and when we use upsert option?
How do you schedule or monitoring the job?
What are the different type of jobs in datastage?