Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Chaitanya Lucky




Posted Questions


No Question(s) posted yet!

Posted Answers



Answer


Tips for Creating Marketing Videos ; Tell a Story · Make Sure the Introduction Stands Out · Create a Stimulating Title ; Don't Be Boring · Get a


Answer is posted for the following question.

How to create a marketing video?

Answer


The Eastman Kodak Company is an American public company that produces various products In the 1990s, Kodak planned a decade-long journey to move to digital


Answer is posted for the following question.

Why did kodak go out of business?

Answer


With a low annual fee of Rs 500, SBI IRCTC Credit Card gives 10% value back on every railway ticket booking which is a decent reward However,


Answer is posted for the following question.

What are the benefits of sbi irctc card?

Answer


Syntax :

Options -c : complements the set of characters in string.i.e., operations apply to characters not in the given set -d : delete characters in the first set from the output. -s : replaces repeated characters listed in the set1 with single occurrence -t : truncates set1.

Sample Commands

1. How to convert lower case characters to upper case. To convert characters from lower case to upper case, you can either specify a range of characters or use the predefined character classes.

Output:

Output:

or

Output:

Alternatively, you can provide input for the tr command using redirection:

Output:

2. How to translate white-space characters to tabs. The following command translates all the white-space characters to tabs

Output:

In the previous example we can also use redirection to provide intput for tr. Although this time we will use a here string for that:

Output:

3. How to translate braces into parenthesis. You can also translate from and to a file. In this example we will translate braces in a file with parenthesis.

Output:

Output:

The above command will read each character from “geekfile.txt”, translate if it is a brace, and write the output to “newfile.txt”.

4. How to squeeze a sequence of repetitive characters using -s option. To squeeze repetitive occurrences of characters specified in a set use the -s option. This removes repeated instances of characters of the last SET specified. OR we can say that, you can convert multiple continuous spaces with a single space

Output:

And again, accomplish the same task but using a string here:

Output:

5. How to delete specified characters using -d option. To delete specific characters use the -d option. This option deletes characters in the first set specified.

Output:

Or equivalently use:

Output:

6. To remove all the digits from the string, you can use

or

Output:

7. How to complement the sets using -c option You can complement the SET1 using -c option. For example, to remove all characters except digits, you can use the following.

or

Output:

This article is contributed by Shivani Ghughtyal. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Answer is posted for the following question.

What is kuu command in unix?


Wait...