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
Q1. What is ssh? A1. SSH is a secure protocol used for remotely connecting to Linux servers. For example, creating an ssh connection from your local laptop to an ec2…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Q1. What are the differences between curl & wget? A1. wget is a tool to download files from servers. It let’s you download files from an HTTP/HTTPS or FTP server….
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
You need to use “ls -la” to list the hidden files in your home (i.e ~) directory. These config files are “.bashrc”, “.inputrc”, “.profile”, etc. In computing, a hidden folder or hidden file is a folder or file that does not display by default when showing a directory/file listing. In Unix-like operating systems, any file or folder that starts with a dot character is to be treated as hidden.…
Q. How would you go about replacing a piece of a text or a phrase from 20,000+ web templates residing on a Unix file system? Even some candidates with 5+…
Login Register 100+ Free Java interview FAQs 100+ Free Big Data interview FAQs
Unix is a very powerful tool to automate monotonous & manual tasks. Here is a real-life example for data engineers & software engineers. If you are not familiar with Shell scripting the code may look complex, but if you dissect as shown below it becomes easier.
What does the below Unix code do?…
Unix is a very powerful tool to automate monotonous & manual tasks. Here is a real-life example for data engineers & software engineers. If you are not familiar with Shell scripting the code may look complex, but if you dissect as shown below it becomes easier.
Problem statement: Given the below sample input file where there can be a “,” in the content itself.…
Q01 How will you go about to list all the table names used in a number of sql scripts for a given database say MY_DB_1?
A01 Let’s say you have a number of sample sql scripts like
test.sql: