Search Results

Search: Posts Made By: saurabhsinha23
4,756
Posted By saurabhsinha23
Read lines till a blank line is encountered
Hi,

I have reached at a specified offset from the start of file. My requirement is that I want to read only those lines, which have the string READ / ALTER / UPDATE. As soon as, none of these...
15,189
Posted By saurabhsinha23
Thanks Porter. I have calculated the offset from...
Thanks Porter. I have calculated the offset from where I have to read. I believe before using lseek, I will have to open the file using open system call. I am getting a syntax error when I try to...
15,189
Posted By saurabhsinha23
Reading a file from a specified offset
Hi,

I want to read a file from a specified offset from the start of file. With the read command, is it possible to do so. Please suggest. Is there any other alternative?

Thanks,
Saurabh
21,338
Posted By saurabhsinha23
Thanks.
Thanks a lot for your inputs.
21,338
Posted By saurabhsinha23
Equivalent of Substr in Unix
Hi,

I have a shell variable which has a value 123456:abcdeg. I want to extract the value which is present before ":". Is there any command in Unix through which I can achieve this. Please...
1,946
Posted By saurabhsinha23
Thanks for your response. It worked. :)
Thanks for your response. It worked. :)
1,946
Posted By saurabhsinha23
Grep question.
Hi,

I am executing the below command.

grep ".UPDATE" file1.txt | grep -v MQQUEUE > Myprog1

The expected output is all lines in file1.txt which have the string ".UPDATE" and dont contain...
24,090
Posted By saurabhsinha23
Thanks Jim. This really helps. :) Let me try it.
Thanks Jim. This really helps. :) Let me try it.
24,090
Posted By saurabhsinha23
Thanks for your prompt reply. I am not familiar...
Thanks for your prompt reply. I am not familiar with awk. Is there any alternative method you can think of..
24,090
Posted By saurabhsinha23
String search - Command to find second occurance
Hi,

I am new to Unix world. Is there any command which can directly return the second occurance of a particular string in a file? Basically, I want to read the contents of the file from the...
Showing results 1 to 10 of 10

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