Search Results

Search: Posts Made By: frajer
1,219
Posted By frajer
I'm so confused right now, cause I'm 100% sure...
I'm so confused right now, cause I'm 100% sure that it worked. Now it doesn't any more... Or I was dreaming :confused:
Output is the same as input (origin.file)?!?
Also second version works the...
1,219
Posted By frajer
thx
Thx a lot, Franklin.
It works, of course. But I have a question more: I want to get as output only changed data.
I tried to do it, but no success :(
1,219
Posted By frajer
awk - change more data
Origin file has got 180 fields. I have to change olny 12th,18th and 52nd one.
In a file new.txt I've got those changes in 4 fields (first one is index):

I know how to change ONE field with awk...
1,515
Posted By frajer
Sorry. I was not precize. I want to include this...
Sorry. I was not precize. I want to include this search into awk program.
I know how to do the search and how to use if statement into awk. But I cannot manage to join those two. Maybe silly, but ...
1,515
Posted By frajer
find pattern
Pls help with this clue:

a goal is to find a pattern and then ...
a) if it is found: {print $0}
b) if not: {print "NOT EXIST"}
4,301
Posted By frajer
But. Then I'd like to add/find one string more......
But. Then I'd like to add/find one string more...

But it gives me only last result/print ?!?

My problem is namely one (even more) large file and at least twelve strings to find in it (them). I...
4,301
Posted By frajer
Thx a lot, Franklin. So simple now, but I could...
Thx a lot, Franklin. So simple now, but I could not find it.
4,301
Posted By frajer
awk (gawk) grep & columns
Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But...
Forum: AIX 09-20-2010
11,095
Posted By frajer
Yes, it was something like that. This is how it...
Yes, it was something like that. This is how it looked like the file /etc/inetd.conf:
As I'd restored it from other server and restarted inetd , telnet and rlogin worked.
Thx.
Forum: AIX 09-20-2010
11,095
Posted By frajer
ping OK - telnet refused
Hi,
After a crash of our older AIX server it happend as it is in the title:
ping is ok, but telnet:

What it can be this strange thing?

Franci
Forum: AIX 08-23-2010
3,904
Posted By frajer
SAMBA users and passwords are kept in its own...
SAMBA users and passwords are kept in its own file:
../private/smbpasswd
So, if you change password for AIX user, the same you have to do for SAMBA user, too.
Maybe in future :)
11,207
Posted By frajer
The permissions and ownership of the underlying...
The permissions and ownership of the underlying mount point are exactly the same on both nodes.
I also restart daemon nfsd. On node that exports and on target node2. No use.
So, finally I changed...
11,207
Posted By frajer
This is from /etc/exports: /temp...
This is from /etc/exports:

/temp -anon=0,sec=sys,rw=node1:node2,root=node1:node2
And the mount point is done exactly equal (properties) on both nodes. But as said, on first you can write, on...
4,545
Posted By frajer
Have you checked some help for ps comm already? ...
Have you checked some help for ps comm already?
For instance ...
Framer for AIX5.1 Commands Fastlink (http://archive.rootvg.net/frcmnds52.htm)
5
sed
2,023
Posted By frajer
That's the correct one: echo "please enter...
That's the correct one:

echo "please enter db pwd: \c"
read dbpwd
echo "please enter app pwd: \c"
read apppwd

sed -e '/^database.password/ s/OBF:.*/OBF:'$dbpwd'/' -e '/^app.password=/...
11,207
Posted By frajer
I've checked the underlying mount point. It is...
I've checked the underlying mount point. It is ... 777 and my group, too.
But, the funny thing is that even root cannot create the file.
On other site /export/ it has been done the same for both...
11,207
Posted By frajer
NFS permission
Two AIX 5.3 machines. On the first a file system is exported, on second it is mounted (NFS). The problem is when i want to create/write a file on a mounted file system:
The file system has read...
34
78,383
Posted By frajer
wq with dot
Be very careful when you quit with editing some file. I use the following ...
:wq
But ones one little dot came between ...
:.wq
Whot does it mean? It saves only the line where the cursor was at...
2,458
Posted By frajer
Printing & sending "user ID"
We print from ERP (on AIX 5.3.0.0) to HP (and Sharp) network printers; we use the QPRT command (for example):
qprt -Pfin8 -Z! -c -d p -N%d %s
For that we use 'hp_lj4' driver (old but useful) where...
6,016
Posted By frajer
AIX: changing the mail server (SMTP)
Hi,
I have to change the mail server, but I could not find the file where it is written in.

I use the following command:
</> echo krneki | mail -v -s "New report" receiver@our.comp
Server name...
Forum: AIX 04-13-2010
6,327
Posted By frajer
lastlog
There is also "host_last_login" information in a file /etc/security/lastlog .
If I login to an appl (on AIX) via 'rexec' from my pc, I can see there pc's name or its IP:
tty_last_login =...
1,767
Posted By frajer
Just add this: $ sed -e '/^$/d' -e...
Just add this:

$ sed -e '/^$/d' -e '/^#fld/d' -e 's/#Fld: //' log.txt | awk '
BEGIN{print "\tFld\trec1\trec2\trec3"}
{
for(j=1;j<=NF;j++)
{arr[j]=arr[j]"\t"$j}
}
END {for(i in arr)
print...
2,742
Posted By frajer
try this...
</> DB_CAPACITY=`expr $DB_SIZE \* 100 / $TOTAL`
25,021
Posted By frajer
just another possibility
echo "aaabbb; xxx xxix" | awk -F";" '{print $2}'
8,541
Posted By frajer
</> cat file1 file2 | sort | uniq -u ...
</> cat file1 file2 | sort | uniq -u


...but I'm not sure for big files. Don't have 2GB one right nov :)
Showing results 1 to 25 of 41

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