Search Results

Search: Posts Made By: Celvin VK
2,226
Posted By Celvin VK
I tried this one and it works. Thank you
I tried this one and it works. Thank you
2,226
Posted By Celvin VK
sed print first line before regexp and all lines after
Hi All

I'm trying to extract the line just above a regexp and all lines after this.

I'm currently doing this in two steps

sed -n -e "/^+---/{g;p;}" -e h oldfile.txt > modified.txt
sed -e...
1,738
Posted By Celvin VK
Hi Thank you Scrutinizer and itkamaraj for...
Hi

Thank you Scrutinizer and itkamaraj for your help.

I tried Scrutinizer's solution and it worked.:b:
1,738
Posted By Celvin VK
Hi Hammadi dali Thank you for your help, but...
Hi Hammadi dali

Thank you for your help, but i can't grep on user names, because that is a dynamic field and I won't be knowing all the users.
1,738
Posted By Celvin VK
Get last date from file
Hi All

I've a file which has date fields and i'm trying to get the last date from the file.

I tried sort option sort -k9 login.txt to get the files sorted based on the user


[Mar 20, 2012...
2,952
Posted By Celvin VK
Thanks a lot fpmurphy and yinyuemi. I got it...
Thanks a lot fpmurphy and yinyuemi.

I got it working by using sed itself.

I was not able to use gawk since i'm running it on Windows, it gave me error

gawk: cmd. line:1: 'NF==4{t=gensub(/[...
2,952
Posted By Celvin VK
print columns with spaces
Hi All

I've a file which is similar to the one given below

column1 coulmn2 column3 column4
A B C D
X Y
F ...
3,059
Posted By Celvin VK
Thanks a ton Scott that worked :)
Thanks a ton Scott that worked :)
3,059
Posted By Celvin VK
Sed find and insert
Hi All

I'm trying to insert a pattern if a pattern is found in a file.

This is my sample file

"PDA"|"Celvin"|"PRJ_NA"|"Completion_Units"|25
"PDA"|"Celvin"|"PRJ_AB"|"Completion_Units"|250
...
2,894
Posted By Celvin VK
Hi All sed ' /</ i\ File from New Cube:...
Hi All

sed '
/</ i\
File from New Cube:
/>/ i\
File from Old Cube:
' difference1.txt > Difference.txt

This one worked....thanks a lot for all your help
2,894
Posted By Celvin VK
Hi tyler I'll test this on Monday on my AIX...
Hi tyler

I'll test this on Monday on my AIX server and will let you know.

Regards

CK
2,894
Posted By Celvin VK
sed issue
Hi All
I'm getting this error while executing a sed script
sed: 0602-404 Function /</ i\ File from New Cube: cannot be parsed.
sed "/</ i\ File from New Cube:
/>/ i\ File from Old Cube:"...
1,746
Posted By Celvin VK
Atlast i got suceeded with this sed...
Atlast i got suceeded with this
sed '/:*_./s/^/#/g;
s/\(_*\) *_./\1/;
s/#create filS*./alter filS/g'
Input is this
create fil23456 read on 3345
create fil23456_1 read on 34567
create...
1,746
Posted By Celvin VK
i think this one works.... sed 's/\(_*\)...
i think this one works....
sed 's/\(_*\) *_./\1/' this will remove all the _s. I have to now get the replace :)
1,746
Posted By Celvin VK
find and replace and keep
Hi All

I've file in which has these lines in it

create fil23456 read on 3345
create fil23456_1 read on 34567
create fil23456_2 read on 36789

I'm trying to replace the lines in such a...
8,265
Posted By Celvin VK
Thanks a lot Vidya this is the one!!!!!!:):)
Thanks a lot Vidya this is the one!!!!!!:):)
8,265
Posted By Celvin VK
how to read a file to an echo statement
I was searching for an option where i can echo some strings together with the contents of a file.

Eg. I was to echo the below string to a file
"alter application PMS_ add variable CurrYear...
2,065
Posted By Celvin VK
Hi Palanisvr I tried if [[ -s...
Hi Palanisvr

I tried if [[ -s "$ESS_KPI_ERR" ]] && [[ -s "$ESS_ORG_ERR" ]] && [[ -s "$ESS_ROLE_ERR" ]]; then and it worked.

Thanks a lot for oyur help.
2,065
Posted By Celvin VK
it got resolved....
it got resolved....
2,065
Posted By Celvin VK
check whether 3 files are present
I'm trying to check whether 3 files are existing and send 3 files as attachements.
If only two are there then send those two files as attachments.

if [ -s "ESSKPI" && -s "ESSORG" && -s...
Forum: AIX 01-07-2009
36,467
Posted By Celvin VK
sending mail from AIX using mailx
Hi

I'm trying to send mail using mailx from AIX 5.3 with multiple attachments and message body. I was able to perform the activity using two different commands and there are some issues with both...
Showing results 1 to 21 of 21

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