Search Results

Search: Posts Made By: newbie_01
143
Posted By newbie_01
Parse 'sections' of the file and print
Hi,


This file is a trace/monitoring file generated by Oracle. Unfortunately, they do not have the tool to parse it 'properly' to get the information that I am after.


Basically, I am after...
152
Posted By newbie_01
Shell Script for "Password Management"
Hi all,


Does anyone know of a 'simple' shell script available out there to do with 'password management'?



Age is really quickly catching up so one of these days I will really need to have...
245
Posted By newbie_01
Thanks for the explanation
Thanks for the explanation
245
Posted By newbie_01
Help with grep to show date/time of file
Hi,


This is similar to what's been asked in the post below:

https://www.unix.com/shell-programming-and-scripting/93748-grep-show-date-time-file-string-found.html


The solution sort of...
250
Posted By newbie_01
Thanks as usual RudiC. I used the sub option...
Thanks as usual RudiC. I used the sub option instead



BEGIN {
for ( i = split( "JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC", month ) ; i ; i-- )
mdigit[month[i]] = i...
250
Posted By newbie_01
Using awk, how to 'properly' print the rest of the string?
Hi,


Script below is working. But I want to put a "=" after the new date format BUT excluding the extra space :(

$ cat x.bash
#!/bin/bash
#

cat x.txt
echo

awk '
BEGIN {
...
279
Posted By newbie_01
Any way to get join to include the non-matching line ???
Hi,


Need guidance if I should totally abandon join and use something else instead. I found several other options when searching for merge files in UNIX.com


Below are the test files to join:...
271
Posted By newbie_01
Another scripting help please, splitting files by range, maybe I don't need a script :(
Hi,


I requested the Windows SysAdmin to give me all available config files from a server.



Instead of sending it into several files, he combine all of them into one single file leaving it...
399
Posted By newbie_01
Hi RudiC Thanks the one liner works like...
Hi RudiC


Thanks the one liner works like a charm. I won't be able to figure out for ages that this will do what I want :o It doesn't even requires any intermediate files.

awk -F\| '{split...
399
Posted By newbie_01
Need advise/tip if there is more efficient way of doing this cut/paste/awk after changing a field
Hi,

This is the script currently and it is working as required. Just thought maybe there is a better or easier way of doing what I am trying to do.

$ cat x.ksh
#!/bin/ksh
#

cut -d"|" -f1...
151
Posted By newbie_01
Tips/advise on alternative to doing egrep -v
Hi all,

At the moment, I am doing the following to exclude some exception strings. The more I need to exclude, the longer the string becomes and it has become error prone as I edit the list...
130
Posted By newbie_01
Tip to remove line endings and spaces on a pre-formatted text file?
Hi,

At the moment, using Notepad++ to do a search and replace, manually section by section which is real painful. Yeah, so copying each section of the line of text and putting into a file and then...
338
Posted By newbie_01
Hi RudiC Thanks for you reply. Very helpful...
Hi RudiC

Thanks for you reply. Very helpful as usual. Yeah I shouldn't need to pre-create the tmpfiles, just being paranoid I guess, I've since change it to use $$ as well as I need to run the...
161
Posted By newbie_01
Lost with this alias why it is not working
Hi,

I have the following aliases:

$: alias | grep "^du="
du='du -s * 2>/dev/null | awk '\''{ printf "%4.2f-KB ==> %s \n", $1/1024 , $2 }'\'' | sort -rn'
$: alias | grep "^dutop10="...
338
Posted By newbie_01
How to 'improve' this script and also 'fix' the pattern matching part?
Hi all,

Below is my script. It is currently working but I want some advice on maybe improving it and need some help on the pattern matching

xx.ksh:

#!/bin/ksh
#
#...
727
Posted By newbie_01
How to simulate column command in Solaris?
Hi,

Does anyone know how to have a similar output like below on Solaris without using column?
The output below is on Linux that uses the column and there is no column command in Solaris.

$...
220
Posted By newbie_01
Any way to sort ps output based on STIME?
Hi,

This is one of the thing that am looking for when I post the question on the ps wrapper. It has since been closed as it has taken me too long to post an example.

I have replaced some of the...
203
Posted By newbie_01
Positional Parameters Arguments/Variables when using dot (.)
Hi,

Is there a special positional variables for when using the dot (.)?

Scripts are as below:

$: head -100 x.ksh /tmp/y.ksh
==> x.ksh <==
#!/bin/ksh
#
. /tmp/y.ksh 1234 abcd

echo...
225
Posted By newbie_01
Silly me :o, it does sort like what it should be...
Silly me :o, it does sort like what it should be doing what you said.
Still a bit lost why a 'normal' sort doesn't sort like I expect it to be :eek:

Cygwin sorts differently too but at least...
225
Posted By newbie_01
@Jim Not sure if this is what you are after....
@Jim

Not sure if this is what you are after. That is my first thought too, there is a special / hidden / unprintable character somewhere.

Please find below echo and the sort and OS flavor.
...
225
Posted By newbie_01
Is this sort working as it is supposed to be? A bit confused whether it is sorting correctly or not
Hi,

Below is the sample file:

$ cat x.txt
MDSYS|OGIS_GEOMETRY_COLUMNS|TABLE
MDSYS|OGIS_SPATIAL_REFERENCE_SYSTEMS|TABLE
MDSYS|SDO_IDX_TAB_SEQUENCE|SEQUENCE
MDSYS|SDO_PREFERRED_OPS_USER|TABLE...
308
Posted By newbie_01
Is there a UNIX command that can compare fields of files with differing number of fields?
Hi,

Below are the sample files. x.txt is from an Excel file that is a list of users from Windows and y.txt is a list of database account.

$ head -500 x.txt y.txt
==> x.txt <==
TEST01 ...
305
Posted By newbie_01
Hi RudiC I tried both of your suggestion and...
Hi RudiC

I tried both of your suggestion and they both work fine with test2.log but not with test1.log. Is there any way to get it to work for both or do I need to use different awk code for each?...
194
Posted By newbie_01
Not sure how to describe it but how to format this list so that it print the 1st field once only
Hi,

Not sure how to describe the problem. But basically, I have this file listing here

app01_app.test.com.ph|PROGRAM=SQL Developer|HOST=AKL0TS100|USER=Admtest01|HOST=10.111.12.23|...
302
Posted By newbie_01
Thanks to all your suggestion. For the time...
Thanks to all your suggestion.
For the time being, I've moved them to a temp directory and strings them one at a time :(. I wish there is a better way of doing. I am trying to check if I can maybe...
Showing results 1 to 25 of 278

 

Featured Tech Videos

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