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
What is the difference between the local container and shared container?
What is the roundrobin collector?
How do you import and export data into datastage?
What is difference between symmetric multiprocessing and massive parallel processing?
How do y read Sequential file from job control?
Differentiate between datastage and datastage tx?
What is difference between server jobs & parallel jobs?
What is difference between join, merge and lookup stage?
how to run a sequential file stage in parallel if the stage is used on the TARGET side
how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)
Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?
How to reverse the string using SQL?
How and where you used hash file?
How the ipc stage work?
What are transforms and what is the differenece between routines and transforms?