Search Results

Search: Posts Made By: verge
6,373
Posted By verge
Ok will do ... which flavor of Linux do you...
Ok will do ... which flavor of Linux do you recommend ... Ubuntu? Fedora? something else?

---------- Post updated at 03:39 PM ---------- Previous update was at 03:37 PM ----------

PS: I don't...
6,373
Posted By verge
Hi Bartus11 ... I'm using Window Services for...
Hi Bartus11 ... I'm using Window Services for Unix Interix Korn Shell
6,373
Posted By verge
Thanks so much bartus11 ... I really appreciate...
Thanks so much bartus11 ... I really appreciate your time ... I see where I went wrong initially, I didn't use quotes and used sub instead of gsub


awk -mr 99999999...
6,373
Posted By verge
Hi and thanks Danmero! Here are a few...
Hi and thanks Danmero!

Here are a few sample lines ... I only want the lines with red ISA on a new line not the ones in purple ISA ... I know its a bit messy ... I can explain the logic/syntax of...
6,373
Posted By verge
Search & Replace regex Perl one liner to AWK one liner
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.

I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to...
8,439
Posted By verge
Thanks for your time and solution mirni ... I...
Thanks for your time and solution mirni ... I really appreciate both!

I apologize for not explaining the logic more clearly and you understood exactly what I meant.

Both of your solutions...
1,562
Posted By verge
Thank you vgersh99 ... it works perfectly! I...
Thank you vgersh99 ... it works perfectly! I really appreciate your time and help.

I added -mr because the lines were too long and refined the search criteria. It ended up like this:


awk...
1,562
Posted By verge
Print pattern range to a new file
Hi Everyone!

I really appreciate all of your help, I'm learning so much, can't wait until I get good enough to start answering questions!

I have a problem ... from one large file, I'd like to...
932
Posted By verge
File parsing help
Hi Everyone,
Please help me figure out how to script this in awk?

INPUT looks like this:
Characters before the first ~ are static (ie ISA, GS)


ISA~00~ ~00~ ~ZZ~RRRR ...
8,439
Posted By verge
Thanks so much mirni ... I really appreciate it. ...
Thanks so much mirni ... I really appreciate it.

Now that I've seen your code, this solves more than one issue for me. If c109 is present then yes ... all the code needs to be executed.
...
8,439
Posted By verge
Mirni!! This worked like a charm! it...
Mirni!!

This worked like a charm! it worked very well and solved the hex issue and created newlines really well.

I'm not familiar with awk ... I tried to change up the if statement but it...
920
Posted By verge
Help with awk: printing variables
awk is only printing out the variables on the first AK2, how do I get it to print out the variables for every occurrence of AK2?


grep -l "^ST.997" *.replaced|sort -n|uniq>FILELIST

while...
8,439
Posted By verge
Help search and replace hex values only in specific files
perl -pi -e 's/\x00/\x0d\x0a/g' `grep -l $'[\x00]GS' filelist`


This isn't working :confused:, it's not pulling the files that contain the regex. Please help me rewrite this :wall:.
...
1,337
Posted By verge
WOW ... Franklin52 your grep statement worked...
WOW ... Franklin52 your grep statement worked like a charm ... I had no idea grep could be used this way!

Thank you!
1,337
Posted By verge
deleting specific lines in a file
I want to delete all lines from a file (orig_file) that contain the regex values (bad_inv_list)

I tried a for each loop with sed but it isn't working

for file in `cat bad_inv_list`;
do
...
2,327
Posted By verge
Hi Corona688! fixed number of lines ......
Hi Corona688!

fixed number of lines ... splitting every 1M lines

I'm willing to split it a different way though

---------- Post updated at 02:32 PM ---------- Previous update was at 02:31...
2,327
Posted By verge
Splitting 12M line file
I have a 12M line file that I need to split into smaller files but I'm getting a

csplit: virtual memory exhausted error

How can I quickly split this file?


This is sze
-r-xr-xr-x+ 1...
4,845
Posted By verge
no Corona688, I don't have a C compiler :( ...
no Corona688, I don't have a C compiler :(

If it helps the token seperator (pos 4) and the line terminator (pos 107) are always in the same position, in the first line (ISA) ... the ISA line is...
4,845
Posted By verge
Here are just a few lines and for simplicity sake...
Here are just a few lines and for simplicity sake they are all the same record type. I can attach a file if it makes things clearer.

From this ...
ISA^00^ ^00^ ...
4,845
Posted By verge
there is no newline where ~ is ... I csplit by...
there is no newline where ~ is ... I csplit by the record header "ISA"

... most are on a newline
... but if the file has less than three lines, I know that the record has this issue
... "ISA"...
4,845
Posted By verge
Thanks again Corona ... I'm still having trouble...
Thanks again Corona ... I'm still having trouble with excluding - as a delimiter in

FS="[^a-zA-Z0-9\\_\\.\\/\\-\\ ]"

I've tried \\-, \-, -, '-'

---------- Post updated at 01:56 PM...
4,845
Posted By verge
You brought up a great point Corona, there are...
You brought up a great point Corona, there are "." and " " and "-" in user entered fields that I don't want awk to use as a delimiter ... I haven't yet been able to figure out the syntax for...
4,845
Posted By verge
Thanks a lot Corona, I really appreciate your...
Thanks a lot Corona, I really appreciate your help ... I have a few other parsing issues but solving this piece helps me a great deal ... I knew there was a better way then grep|cut etc.

I just...
4,845
Posted By verge
No it isn't indented ... I just indented it, to...
No it isn't indented ... I just indented it, to point out the relationship between the groups

ok ... you've given me something to chew on here, this is a great start, I'm going to start...
4,845
Posted By verge
Thanks Corona, I'm using Korn Shell on...
Thanks Corona,

I'm using Korn Shell on Microsoft Windows Services for UNIX 3.5 which supports
Sun Microsystems Solaris versions 7 and 8
Red Hat Linux version 8.0
IBM AIX version 5L 5.2 ...
Showing results 1 to 25 of 30

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