Search Results

Search: Posts Made By: gr8_usk
3,610
Posted By gr8_usk
Using | instead of / worked like charm. ...
Using | instead of / worked like charm.

Thanks a ton to Scrutinizer, Corona688 , ongoto !!!
3,610
Posted By gr8_usk
Sed/replace using variable
Hello everyone,

In one of my shell script I am doing sed/replace using a variable to find a string in a file & replace it with another string in same file.

The challenge which I am facing is...
Forum: Red Hat 09-02-2014
4,299
Posted By gr8_usk
Thanks MadeInGermany. I did carried out...
Thanks MadeInGermany.

I did carried out those steps, however I forgot to mention in my earlier post.
5,447
Posted By gr8_usk
@RavinderSingh, thanks for your reply. I yet to...
@RavinderSingh, thanks for your reply. I yet to try out the code. Will let you know as soon as I can.

Thanks again.
Forum: Red Hat 09-01-2014
4,299
Posted By gr8_usk
Thanks RudiC & MadeInGermany for your replies,...
Thanks RudiC & MadeInGermany for your replies, sorry for responding late.

While googling around I got a really nice article which helped me to achieve my goal.

How to shrink a default install...
Forum: Red Hat 07-26-2014
4,299
Posted By gr8_usk
Shrink LVM partition & create new Linux Primary partition
Hello All,

I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,

/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical...
5,447
Posted By gr8_usk
Hi Yoda & RudiC, thank you very much for help...
Hi Yoda & RudiC, thank you very much for help both the solutions worked for me.
5,447
Posted By gr8_usk
Hi Yoda, thanks for your quick reply. I would...
Hi Yoda, thanks for your quick reply. I would like to know if if i can run this code as one liner ? If yes how to do that . Tks
5,447
Posted By gr8_usk
Combining multiple block of lines in one comma separated line
Hi Everyone,

On my Linux box I have a text file having block of few lines and this block lines separated by one blank line. I would like to format and print these lines in such a way that this...
8,524
Posted By gr8_usk
Yazu ... this is awesome ... worked perfectly !!!...
Yazu ... this is awesome ... worked perfectly !!!

Thanks a lot for help.

One thing ... If possible can you explain in brief how this works ?
8,524
Posted By gr8_usk
yazu ... Yes, your understanding is very right,...
yazu ... Yes, your understanding is very right, please help.
8,524
Posted By gr8_usk
Yes, I have these 2 date patterns in my input...
Yes, I have these 2 date patterns in my input file & wanted to convert it to "Jul 18 2011" pattern.

I am using Solaris 8.
8,524
Posted By gr8_usk
awk/sed to search & replace data in first column
Hi All,

I need help in manipulating the data in first column in a file.

The sample data looks like below,


Mon Jul 18 00:32:52 EDT 2011,NULL,UAT
Jul 19 2011,NULL,UAT


1] All field...
6,237
Posted By gr8_usk
Thanks a lot ... both ways worked perfectly.
Thanks a lot ... both ways worked perfectly.
6,237
Posted By gr8_usk
Unix remove white spaces/tabs before & after pattern
Hi All,

I wanted to know is there any way we can remove white spaces/tabs before & after some pattern { eg. before & after "," }.

Please find below sample data below,


Sat Jul 23...
21,493
Posted By gr8_usk
Hey...Thanks to all for providing such useful...
Hey...Thanks to all for providing such useful info.
21,493
Posted By gr8_usk
Thanks Panyam for your useful & quick help, this...
Thanks Panyam for your useful & quick help, this is what I wanted to do. :-)
21,493
Posted By gr8_usk
Panyam, thanks for revert, but how do I...
Panyam, thanks for revert, but how do I manipulate it ? any suggestion ?
21,493
Posted By gr8_usk
Unix random number generate in given range
Hi All,

I have extracted some report from database for few activities done.

Now I have a requirement to add some random time(In range of 10-35) in front of each activity.

Can be generated...
8,420
Posted By gr8_usk
Sorry ... I just overlooked the filed in my file....
Sorry ... I just overlooked the filed in my file. Thanks a lot !!! It worked perfectly.

I have used with "||" as well to search for "$1 && $2" and "$2 && $3"


bash-2.03$ nawk -v d=$DD -v...
8,420
Posted By gr8_usk
Please see output below, bash-2.03$...
Please see output below,


bash-2.03$ uname -a
SunOS test 5.8 Generic_127721-03 sun4u sparc SUNW,Sun-Fire-15000
bash-2.03$ awk -v d=$DD -v m=$MM '$1==m && $2==d' input_file
awk: syntax error...
8,420
Posted By gr8_usk
There is no output, please see below, ...
There is no output, please see below,


bash-2.03$ VAR="Jul"
bash-2.03$ VAR2="20"
bash-2.03$ sed '/^'"${VAR}"' *'"${VAR2}"'/!d' test.txt
bash-2.03$ echo $?
0


Please advise.
8,420
Posted By gr8_usk
Hi Thanks for your revert, I tried but this not...
Hi Thanks for your revert, I tried but this not working.

I wanted to search for below pattern,


Jul 20 ---> Single space in between Month & Date
Jul 20 ---> Double space between Month &...
8,420
Posted By gr8_usk
Help to search multiple pattern in file with grep/sed/awk
Hello All,

I have a file which is having below type of data,


Jul 19 2011 | 123456
Jul 19 2011 | 123456
Jul 20 2011 | 123456
Jul 20 2011 | 123456
...
8,550
Posted By gr8_usk
Hi Perderabo, I have came across some...
Hi Perderabo,

I have came across some limitation of "od" command, can you please help me to correct this,

I have one file with below details,


$ ls -lrt test
-rwxrwxr-x 1 user sys ...
Showing results 1 to 25 of 50

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