Search Results

Search: Posts Made By: newbie_01
8,193
Posted By newbie_01
Is it possible to get the same result in one sort?
Hi,


This is the file that I want to sort:



$: cat files.tmp
1237008222 10664 log.10
1237008222 10664 log.12
1237008222 10664 log.14
1237008222 10664 log.16...
11,126
Posted By newbie_01
Hi Thinking about it, I guess what am...
Hi


Thinking about it, I guess what am looking for is like an encrypted text database of some sort or an encrypted note taking app but one that I can run as a shell script, not one that I need to...
14,139
Posted By newbie_01
Hi Jim, The grep works in Linux but not...
Hi Jim,


The grep works in Linux but not in Solaris. Sorry, forgot to mention, OS is SunOS <hostname> 5.11 11.3 sun4v sparc sun4v


Yeah, the code below works and files.tmp did has the list of...
14,139
Posted By newbie_01
Hi Rudic Your suggestion is really cool,...
Hi Rudic


Your suggestion is really cool, it does like what you said where it skips the ones that has been parsed before as per the filesdone control file. I tested it and rename one of the file...
14,139
Posted By newbie_01
Thanks Jim, I'll give your suggestion a...
Thanks Jim,


I'll give your suggestion a try.
OS is SunOS <hostname> 5.11 11.3 sun4v sparc sun4v

--- Post updated at 10:30 PM ---

Thanks RudiC, I'll give it a test
14,139
Posted By newbie_01
Advise to print lines before and after patterh match and checking and removing duplicate files
Hi,


I have a script that search log files for the string CORRUPT and I then print 10 lines before and after the pattern match. Let's call this pattern_match.ksh



First I do a grep -in...
11,126
Posted By newbie_01
Hi, Thanks for your reply. Unfortunately,...
Hi,

Thanks for your reply.
Unfortunately, I can't use what you are suggesting. I am more or less looking for something 'simple' actually.
So there are several servers that I ssh to, I can copy...
4,986
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...
11,126
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...
7,727
Posted By newbie_01
Thanks for the explanation
Thanks for the explanation
7,727
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...
6,305
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...
6,305
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 {
...
4,983
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:...
4,237
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...
5,298
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...
5,298
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...
1,752
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...
2,541
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...
2,408
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...
1,817
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="...
2,408
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
#
#...
14,747
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.

$...
3,225
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...
2,540
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...
Showing results 1 to 25 of 285

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