Search Results

Search: Posts Made By: boncuk
Forum: Programming 09-27-2018
2,722
Posted By boncuk
Java compilation error
i am on red hat Linux .



package hiveudf;
import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;
public class lowercaseudf extends UDF {
public Text...
2,153
Posted By boncuk
sorry the browswer not putting code tags around...
sorry the browswer not putting code tags around the code when I click on button , so I am adding them manually hope it works.
can someone help me on my sed command please?

I am using sun...
1,442
Posted By boncuk
Parsing via sed issue
sorry I messed up the last post with too many mistakes and corrections so I closed it and opening a new one which should be clear to everyone .my apologies to the admins.


I am using sun solaris...
2,153
Posted By boncuk
Rudi's sed is not returning me anything ...
Rudi's sed is not returning me anything


$ type a.txt
000000001000
433483433339
121121211100
167710000110
167735250310
167735260510
167735280710
167735301010
167735431010
167735451010...
2,153
Posted By boncuk
sorry my bad. . this is what i want
ok let me tell it more clearly ..lets say I have a file a.txt
$ type a.txt
000000001000
433483433339 record 2
121121211100
167710000110
167735250310
167735260510
167735280710
167735431010...
2,153
Posted By boncuk
hi Rudi .. sorry it was a typo. . 2nd wrong is...
hi Rudi .. sorry it was a typo. . 2nd wrong is not wrong. but 1st wrong is wrong.
I ran your command it selects nothing ?



------ Post updated at 09:12 PM ------



no i dont want to...
2,153
Posted By boncuk
Regex question
I want to match all occurrence of 01,03,05,07,10,11 at 9th and 10th position of a string .
I tried the following but its also matching characters like 33 or 11 on 9th and 10th position .


sed ...
1,563
Posted By boncuk
thanks is it possible to break out of sed ...
thanks

is it possible to break out of sed on the first non match instead of looping through the whole large file ?
829
Posted By boncuk
Getting out of sed on first NOT match
i have a large file where i want to look for any record that is is larger or smaller than 21 and if it is the case i want to report and break SED .. how can i achieve it ?
i dont want sed to...
1,563
Posted By boncuk
no it didnt help .. if i try to use "!" i get...
no it didnt help .. if i try to use "!" i get unknown command :(

sed -n '!/^.\{20,21\}$/p' a.a
sed: Unknown command

---------- Post updated at 12:54 PM ---------- Previous update was at...
1,563
Posted By boncuk
Finding lines of specific size in files using sed
i am using sed to detect any lines that are not exactly 21. the following gives me the lines that ARE exactly 21. i want the opposite , i want the two lines that are not size 21 (shown in bold)

...
1,796
Posted By boncuk
btw is it possible to just end the sed command...
btw is it possible to just end the sed command even if one nomatching record is found ? i have a large file to search these records and its taking long time to come out .
1,796
Posted By boncuk
its giving me all the records ? e.g in the...
its giving me all the records ?
e.g in the data below i only want the highlighted record since its 9th and 10th position DO NOT contain either 01,03,05,07

-bash-4.4$ more a.a...
1,796
Posted By boncuk
sed question for substring search
i have this data where i am looking for a two digit number 01,03,05 or 07.
if not found i should detect that .

this sed command gives me the matching rows . I want the opposite , i want the rows...
Forum: Solaris 02-17-2016
1,598
Posted By boncuk
Expect utility not working for Solaris 11
iam withdrawing this thread , It was my mistake I didn't read the code properly
Showing results 1 to 15 of 15

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