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 are sequencers?
What are some different alternative commands associated with "dsjob"?
hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys
CHANGE CAPTURE
What is the difference between in process and inter process?
How to convert RGB Value to Hexadecimal values in datastage?
how many rows sorted in sort stage by default in server jobs
What are the steps required to kill the job in Datastage?
How will you move hashed file from one location to another location?
what is use of SDR function?
in oracle target stage when we use load option and when we use upsert option?
How do you reject records in a transformer?
What is the different type of jobs in datastage?
why do u need the IOS upgradation in a FC switch
What are the functionalities of link partitioner?