Search Results

Search: Posts Made By: newbie_01
1
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:...
24
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...
79
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...
79
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...
134
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...
88
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...
236
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...
131
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="...
236
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
#
#...
252
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.

$...
182
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...
172
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...
196
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...
196
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.
...
196
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...
226
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 ...
225
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?...
146
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|...
262
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...
262
Posted By newbie_01
Thanks everyone for your responses. I will give...
Thanks everyone for your responses. I will give each find a try. It's a good exercise for learning regex and stuff. This is always been a mystery.
225
Posted By newbie_01
Help with understanding this regex in a Perl script parsing a 'complex' string
Hi,

I need some guidance with understanding this Perl script below. I am not the author of the script and the author has not leave any documentation. I supposed it is meant to be 'easy' if you're...
127
Posted By newbie_01
Oops, just found the answer from Google. Using...
Oops, just found the answer from Google. Using ssh -n gives me what I am wanting to do.
127
Posted By newbie_01
Why this script is not working as 'expected' when doing ssh with while read ... really confused?
Hi,

I have a script below that is running ssh <host> <command> on some servers.

Below is more or less the script. I have to modify it somehow to get rid of the 'confidential' hostnames
...
262
Posted By newbie_01
Can you do remove core file based on what created them :(
Hi,

Currently, we have a Perl script from a third-party vendor that is generating core dumps. It has been reported. We can't turn off the script as it does generate some diagnostic file that's...
184
Posted By newbie_01
Not really looking to replace ps, but is there a ps 'alternative'/wrapper tool
Hi,

I am not really wanting to replace ps but I am hoping that someone has written a ps wrapper of some sort that can give it some functionalities. I am looking for one that can maybe do the...
Showing results 1 to 25 of 272

 

Featured Tech Videos

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