Search Results

Search: Posts Made By: Jin_
2,108
Posted By Jin_
Problem is when the line also has irrelevant...
Problem is when the line also has irrelevant numbers at the end of the line, it will give a hit to the grep.
2,108
Posted By Jin_
Digits are inconsistent as well. Can be 3, can be...
Digits are inconsistent as well. Can be 3, can be 10. Is the solution above going to work?




What does the "+" sign do? Is it like the "*" in ls ?
2,108
Posted By Jin_
awk pattern search with inconsistent position
Hi,

Anybody knows how to get the value after the regexp and test it on pattern? The if the pattern matches, it will print the entire line on a separate file.

Here's my raw file:
...
2,483
Posted By Jin_
This part of awk: /Amount/ && /TotalSales/ ...
This part of awk:
/Amount/ && /TotalSales/

Does it mean that if one of the pattern is absent, then it will ignore the entire line? I've never heard of using the && for awk. Powerful stuff!
2,483
Posted By Jin_
Holy crap! Good stuff guys. Thanks!
Holy crap! Good stuff guys.

Thanks!
2,483
Posted By Jin_
Getting lines between patterns and perform operations
Hi, I'm currently dev'ing using awk and I'm currently stuck.

Here's the file, with comments on "<--- ":

Record <--- First Pattern
Amount 1 <--- Amount on first transaction...
Forum: HP-UX 02-13-2012
4,298
Posted By Jin_
Defunct Processes; Maximum Process
I'd like to remove this defunct processes without rebooting. Or, I could remove this defuncts when the maximum allowable process is nearly reached, then send an email to the user/team. How can I...
1,319
Posted By Jin_
Determine maximum allowable processes on a platform
Hello Unix gurus,

I'm creating this analysis to determine whether the maximum allowable process is nearly reached then alarm the user with it. Can someone please help me on how I can determine...
30,577
Posted By Jin_
AIX and Linux difference (character set)
I'm having a problem regarding the encoding of my files in Linux and AIX.

I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have...
3,426
Posted By Jin_
Weird TR behavior. Replacing two instance
Can someone please explain what's wrong with the command i use below?

tr -c '\11\12\40-\176' ' '< $TEMP_FILE > $TEMP_FILE2

The invalid character/s is replaced with two spaces, the string2 only...
4,791
Posted By Jin_
Help in TR command
Can someone please explain what's wrong with the command i use below?

tr -c '\11\12\40-\176' ' '< $TEMP_FILE > $TEMP_FILE2

The invalid character/s is replaced with two spaces, the string2 only...
3,868
Posted By Jin_
Remove invalid database characters on a file
Hi All -

I'm building a script wherein it is design to remove characters that are not accepted on a non-unicode database. Examples are the following: ï,¿,½,Â,é, etc.

I can easily sed those...
5,924
Posted By Jin_
Is says: Operation not permitted. uname -a...
Is says: Operation not permitted.

uname -a gives me this:
Linux xxxxxx.xxxxx.com x.x.xx-xxx.x.x.elx #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
5,924
Posted By Jin_
Can't chgrp, chown on Linux
I have a problem on Linux wherein it doesn't allow me to use the chown and chgrp even if I am the owner of the file. Is this one of the Linux limitations?

BTW, I can use chmod.
56,296
Posted By Jin_
Oh, that's it! The linesize on sql. Thank...
Oh, that's it! The linesize on sql.

Thank you so much!
56,296
Posted By Jin_
I found out that it's because of a '$' being...
I found out that it's because of a '$' being generated automatically; which I do not know how or why.

The code that I've used is shown above. Post #10
Our OS is Linux with x86_64 GNU/Linux...
56,296
Posted By Jin_
deleted wrong data
deleted

wrong data
56,296
Posted By Jin_
Yes, it has. The value is the real file name to...
Yes, it has. The value is the real file name to be generated. Please consider file=CSV_FILE:


export CSV_FILE=$PATH/MI_RESULT_OF_QUERY_DATETIME


The file is successfully generated and...
56,296
Posted By Jin_
I have a function to call the run_sql.ksh script...
I have a function to call the run_sql.ksh script using sqlplus.
Whenever I call the function, I dump the result on a $LOGFILE and also spool it on ${file}.csv
Now, the CSV file will be "sed" using...
56,296
Posted By Jin_
The problem with removing ALL non-keyboard...
The problem with removing ALL non-keyboard characters is that the needed hidden characters will be deleted too.

The file is generated from mysql, then dumped to a file. The file will be sed to...
56,296
Posted By Jin_
The files will be generated by the script on...
The files will be generated by the script on Linux box, then send the file as attachment to MS Outlook users.

I tried both of the commands, but the '$' is still there. Am I the only one...
14,788
Posted By Jin_
Please post your examples so we could help you...
Please post your examples so we could help you better.
56,296
Posted By Jin_
Hi guru, Thanks for the fast response but...
Hi guru,

Thanks for the fast response but my problem is not solved using sed.

I tried using your command but the Linux still cannot interpret the hidden '$' even if we used a escape...
56,296
Posted By Jin_
Removing "Hidden Characters" on a file
Hi -

I'm having a problem with hidden characters on Linux. When I produced an output from Oracle database, there is a an extra "Hidden Character" included on the output. How can I remove that...
Showing results 1 to 24 of 24

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