Search Results

Search: Posts Made By: daytripper1021
2,181
Posted By daytripper1021
Sorry for the typo, but my earlier msg should've...
Sorry for the typo, but my earlier msg should've read 922000 to 922999 (fixed length).

It's working now. Thanks!
2,181
Posted By daytripper1021
I knew it! Thanks Krishmaths! :)
I knew it! Thanks Krishmaths! :)
2,181
Posted By daytripper1021
Sorry, but I forgot to mention that I need to...
Sorry, but I forgot to mention that I need to filter a number range for that string. Example, I only need to show the files/rows that have chars 5-10 withiin the range of 922000 to 9229999.

Hope...
2,181
Posted By daytripper1021
Check for rows with particular string
Hi. The data file is as below:

2000922111111100232091212098324....
2123011230912832094820943684896....
3435983453409583405938453049583....
.
.
.

I need to get only the rows that match my...
2,057
Posted By daytripper1021
Oops. Sorry I made a mistake. It works in Ubuntu...
Oops. Sorry I made a mistake. It works in Ubuntu Linux!

Thanks!
2,057
Posted By daytripper1021
the join command had no output.
the join command had no output.
2,057
Posted By daytripper1021
Thanks for the quick reply! Btw, I think the code...
Thanks for the quick reply! Btw, I think the code could get faster if, once a match has been found, it ends the search for that value and goes immediately to the next. Would you know how to add this...
2,057
Posted By daytripper1021
Faster search needed
Hope you guys out there can help.

I have 2 files as below:

file 1:

111,222,333,444,555,666
777,888,999,000,111,222
111,222,333,444,555,888

file 2:
666,AAA
222,BBB
888,CCC

I want...
21,504
Posted By daytripper1021
Hi there, Newbie here. Can you help to...
Hi there,

Newbie here. Can you help to explain the code above, particularly this part:

awk '/^83 *[12][0-9][0-9][0-9]/

Thanks in advance!
1,760
Posted By daytripper1021
This worked beautifully! Thanks!!!:b:
This worked beautifully! Thanks!!!:b:
1,760
Posted By daytripper1021
compare 2 files
Hi,

I have 2 files as below:

file1 (take note that this is an 800MB-sized file)
111111,1111
222222,2222
333333,3333

and

file2 (4MB file)
111111
444444
333333

I need to compare...
7,987
Posted By daytripper1021
thanks!
Thanks guys! I was able to use this (placed in a script).

cat $INPUT/$file|sed -e"s/&/&/g" > temp
7,987
Posted By daytripper1021
Search and replace in text file
Hi,

I have gigabytes of text files that I need to search for "&" and replace with "&amp". Is there a way to do this efficiently (like sed command)?

Hope you could help.

Thanks.
13,570
Posted By daytripper1021
sorry, I meant sum up the columns of 4 files...
sorry, I meant sum up the columns of 4 files containing the same format as in the top of this forum topic.

thanks!
13,570
Posted By daytripper1021
hi. what if I wanted to add ALL columns of file1...
hi. what if I wanted to add ALL columns of file1 and 2 (add to that file3 and file4 with the same format)? how will the code look like?

appreciate your help.
3,145
Posted By daytripper1021
here contents (sample, it's a long file): ...
here contents (sample, it's a long file):

00014,NCR
00014,NCR
00015,NCR
00015,NCR
00016,NCR
00016,NCR
00024,NCR
00024,NCR
00025,NCR
00025,NCR


new.txt

00,17964
00,35031
00,13405...
3,145
Posted By daytripper1021
It doesn't seem to work when I do it this way: ...
It doesn't seem to work when I do it this way:


for LINE in `cat here`
do
CID=`echo $LINE|awk -F"," {'print $1'}|cut -c 1-5`
NAME=`echo $LINE|awk -F"," {'print $2'}|cut -c 1-3`
echo $CID...
3,145
Posted By daytripper1021
Is it possible to mix it with gsub() function?...
Is it possible to mix it with gsub() function? That is:

nawk -F"," -v X=$X -v Y=$Y '{gsub(X,Y,$2); print $0 }' new.txt >that.txt
3,145
Posted By daytripper1021
Can I use nawk -v with two or more variables?
Hi,

Is it possible in awk/nawk to pass two or more variables in the -v flag? That is:

X=1
Y=2
nawk -v X=$X Y=$Y.....

Thanks in advance.
Forum: Solaris 03-02-2010
3,351
Posted By daytripper1021
pkgadd....ahhhh...so that's what I should've...
pkgadd....ahhhh...so that's what I should've done.

it works now!!!

thanks adelsin!! :)
Forum: Solaris 03-02-2010
3,351
Posted By daytripper1021
unrar doesn't seem to install properly
Hi,

I downloaded unrar from sun-freeware website (unrar-3.68-sol8-sparc-local.gz). After gunzip, I then did:

install -c /usr/local unrar-3.68-sol8-sparc-local

I'm not sure if that was...
3,816
Posted By daytripper1021
Wow thank you so much for your quick replies! I...
Wow thank you so much for your quick replies! I was able to shortern my shell script (removing cut commands) to use the following suggestion and it worked!

awk '{print...
3,816
Posted By daytripper1021
**HELP** need to split this line faster than cut-command
Hi,

A datafile containing lines such as below needs to be split:

500000000000932491683600000000000000000000000000016800000GS0000000000932491683600*HOME

I need to get the 2-5, 11-20, and...
2,524
Posted By daytripper1021
works!
This one worked well!

Thanks!!!! :)
2,524
Posted By daytripper1021
help with awk substitution
Hi again.

A have a CSV-file in the following format:

2008.09.01,15:17:42,9227096485,9233175320,CTC10,SMS,0901151742098314,Target_MSIS
DN_is_blacklisted

I want to have an awk command that...
Showing results 1 to 25 of 33

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