Search Results

Search: Posts Made By: beginner_99
1,397
Posted By beginner_99
How to delete identical lines while leaving one undeleted?
Hi,

I have a file as follows.

file1

Hello
Hi
His
Hi
Hi
Hungry
hi

so I want to delete identical lines while leaving one of them undeleted.

So desired output will be

Hello
Hi
8,467
Posted By beginner_99
How to prevent sed command removing whole line?
hello,

I'm using sed command to extract the text between 2 special characters which are /* and */
I used following command to do this.

sed -n '/\/\*/,/\*\//p' file.txt

But if the...
26,365
Posted By beginner_99
I'm using opensuse 13.2. Yeah I figured it out...
I'm using opensuse 13.2. Yeah I figured it out using,

grep -Fvf file2 file1

This removes the exact text needed to be subtracted. By the way can you help me to differentiate between pointers and...
26,365
Posted By beginner_99
Subtracting two files
Hi,

I want to subtract 2 files and save the remaining text in another file. Lets say,


Hello
Happy //
Hi
*
Hungry

File2

Happy
Hi


Output

Hello
Forum: Programming 08-10-2016
1,238
Posted By beginner_99
I appreciate your help Don Cragun. And I followed...
I appreciate your help Don Cragun. And I followed your code and extracted the bit size of of operands of my C code. But I had to use snprintf() and system() functions to pass the variables from C...
Forum: Programming 08-09-2016
1,238
Posted By beginner_99
How to access a C function from a shell script?
Hi, I'm new to shell programming. And I'm having issues with accessing a C file with shell. Given a C code which contains functions and Lets say each function contains a multiplication instruction. [...
Forum: Programming 08-08-2016
1,595
Posted By beginner_99
Thank you very much for helping me who had no...
Thank you very much for helping me who had no idea of doing this :)
Forum: Programming 08-08-2016
1,595
Posted By beginner_99
I thought of a method to find out exact no. of...
I thought of a method to find out exact no. of bits in a operand. Right shifting by 1 bit until it becomes zero. No. of times shifted will be size of the operand. But how do I write a shell script to...
Forum: Programming 08-08-2016
1,595
Posted By beginner_99
How to extract operand size in bits of a C program?
Hi I'm new to shell programming. How do I extract the size of an operand in a simple instruction in a C program? Lets say there is an addition a+b somewhere in a C code where a and b are integers....
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 11:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy