Search Results

Search: Posts Made By: jgrogan
5,010
Posted By jgrogan
I don't have time for details, but here are the...
I don't have time for details, but here are the bones of it:


D/L ISO image of your Linux to Win desktop
D/L Virtualbox; install it on Win.
Start Virtualbox; go through the process of...
54,436
Posted By jgrogan
find tnsnames.ora in unix
as root

find / -name "tnsnames.ora" -print

...although I an sure there will be a default location (perhaps under ORAHOME_n (n = 1,2,3 etc., depending on your installation)
1,813
Posted By jgrogan
extracting with sed
Try

sed -e "s;.*\[\(.*\)\].*$;\1;g" yourlogfile.log > yourfilelist

HTH
JG


Your requirement changed so this won't work. Sorry!
1,552
Posted By jgrogan
Sort Issue
Hi

I would strip all unnecessary whitespace

sed -e "s/[ ]*|[ ]*/|/g" -e "s/^[ ]*//" -e "s/[ ]*$//"

and change the sort condition for column 17 back to as you had it the first place, giving...
1,552
Posted By jgrogan
Sort Issue
Hi

nawk -F'|' '{n=split($NF, a, "[ /]"); gsub(":", "", a[n]);printf("%d%02d%02d%s%s\n", a[3], a[1], a[2], a[n], OFS $0)}' OFS='|' adr.txt \
| sort -t '|' -k2n,2 -k17.1,17.1 -k16n,16 -k15n,15r...
8,131
Posted By jgrogan
sed - append text to every line
Hi Scrutinizer

It would appear not.

While it is true that the data has been copied from Windows, `cat'ing and `vi'ing the file shows up no ctrl-M characters as line ends.

Thanks for the...
8,131
Posted By jgrogan
sed - append text to every line
Hi all

I tried this on an old version of sed on NCR Unix MP-RAS:


sed -e "s/$/nnn/" file1 >file2

This file (file1):

the cat sat on the mat.
the cat sat on the mat.

the cat sat on the...
2,546
Posted By jgrogan
FTP Status verification
(In my case, I am sending files to a remote location).

In very general terms, I would look for the number of occurrences of lines in the log file starting with the value (string) "226 ". I would...
12,163
Posted By jgrogan
FTP Error checking
Hi

This is based on ksh, but the same prinicples should apply. A key thing is that successful FTP normally yields a 226 message on success *for each transferred file*.

So, this code counts...
9,112
Posted By jgrogan
Sed: zero-padding dates (or: convert d/m/yyyy to dd/mm/yyyy)
Hi all

I have some pipe-separated data in the form:

5/12/2008 00:00:00|31/1/2009 00:00:00|SOMESTUFF|OTHERSTUFF
12/31/2008 00:00:00|15/1/2009 00:00:00|MORESTUFF|REMAININGSTUFF
1/1/1023 ...
30,989
Posted By jgrogan
Check the sqlplus "set" options - you can...
Check the sqlplus "set" options - you can eliminate the unwanted stuff using those (iirc, "set heading off" for example)

BRgds
4,965
Posted By jgrogan
Awk & EBCDIC
Why not convert all your EBCDIC to ASCII, do your AWK stuff, then convert it all back to EBCDIC?

IIRC, dd man dd(1M) may help in EBCDIC->ASCII conversion

Rgds
2,261
Posted By jgrogan
Annoying tooltips
Hi

Is there any way to turn off the (often ridiculously big) tooltips that are displayed when hovering over a topic in a topic list? It's driving me nuts.

Thx.
J
Forum: SuSE 02-17-2009
10,303
Posted By jgrogan
Did you make install or sudo make...
Did you

make install
or
sudo make install
?

Try sudo make install (if you have not already...)
2,582
Posted By jgrogan
gsed 4.1.5 cannot find ".+" in my file
Hi all

I have a file with a single record:

"ab"c",asb,"dfe 7"",bbv",12345,q17,"a field with a comma, here",1234.56

If I issue (will print if a match is found)


sed -n -e "s/.+/&/gp"...
1,648
Posted By jgrogan
awk operating with shell vars only
Hi all

How do I use awk such that it does not require an input file? I have a situation where I need to process some shell vars within awk (passed into awk with "-v VAR1=$VALUE1, VAR2=$VALUE2"...
1,557
Posted By jgrogan
Oops - probably - I'll look at that Thanks ...
Oops - probably - I'll look at that

Thanks
JG
1,557
Posted By jgrogan
Idea: New search option
Hi Mods / Admins,

How about a search option to allow a user to find threads that they have contributed to (e.g. "Find threads I have contributed to")?

It could save time scanning pages of...
6,070
Posted By jgrogan
I think that anyone engaging in such a task...
I think that anyone engaging in such a task should themselves have a vision for it.

What is your vision, nsharath?
6,052
Posted By jgrogan
Loading Oracle data to unix in flat file
Use sqlplus to select your data and output it to a file:

LOGON={yourlogonstring}
OUTPUT={youroutpufilename}
SCHEMA={yourschema name}
SRCTBL={yoursourcetablename}

sqlplus -s $LOGON <<EOF...
7,249
Posted By jgrogan
Fixed
It turned out that the userid conserned had used it's entire resource allocation. Rebooted the box, this cleared out a buch of 'hung' jobs, and now all is well again.

JG
7,249
Posted By jgrogan
Shell not responding
Hi all

(Shell: ksh Unix: NCR Unix)

Upon opening a shell, I can type a command (any command), but the shell does very little or nothing. If I cd to an unknown directory, the shell responds...
4,789
Posted By jgrogan
Replace multiple blanks within double quotes
Thanks all for your responses. I will try these in a real-world scenario and report back.

Many thanks for your help

JG
4,789
Posted By jgrogan
Replace multiple blanks within double quotes
I have various column names within double quotes, separated by commas.
Example:

"column one", "column number two", "this is column number three", anothercolumn, yetanothercolumn

I need to...
30,636
Posted By jgrogan
There is a setting on some FTP servers that allow...
There is a setting on some FTP servers that allow duplicated filenames to be renamed with a suffix on receipt (so aaa.txt would be renamed by the FTP server to aaa.txt.1 if aaa.txt already existed in...
Showing results 1 to 25 of 27

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