Q1 How do you remove the Control-M characters from a file? A1 Using the sed command that replaces Control-M with nothing
1 |
sed 's/^M//g' ReadWriteFile.sh > ReadWriteFileNew.sh |
Note: The ^M is typed on the command…
…Q1 How do you remove the Control-M characters from a file? A1 Using the sed command that replaces Control-M with nothing
1 |
sed 's/^M//g' ReadWriteFile.sh > ReadWriteFileNew.sh |
Note: The ^M is typed on the command…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Many production systems run on Linux systems, especially the Cloud infrastructure (i.e. AWS & GCP). Even Android uses the Linux kernel under the hood. So, it really pays to have…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Q1 How will you go about reading a CSV file as shown below?
1 2 3 4 5 6 |
Portfolio,Account,PositionIndicator,Amount AA123,CURR-AUD,CREDIT,2244.14000000 AA123,CURR-AUD,CREDIT,5.60000000 AA123,CURR-AUD,DEBIT,2249.74000000 AA123,CURR-GBP,CREDIT,0.01000000 AA123,CURR-GBP,DEBIT,0.01000000 |
A1