Search Results

Search: Posts Made By: cokedude
10,189
Posted By cokedude
So two spaces vs one space makes a big difference...
So two spaces vs one space makes a big difference it seems? Do you know why it adds an extra space?

sed 's/[,.!? ] */\
/g' file
server1
server2
server3
server4 server5 server6

sed...
10,189
Posted By cokedude
AIX sed use space as delimiter
I am trying to do this with one small tweak. I would also like to use a space as a delimiter.

sed 's/[,.!?] */\
/g' file

This is what my file looks like.

server1, server2, server3...
10,180
Posted By cokedude
Yes that works. I see where I went wrong. The $i...
Yes that works. I see where I went wrong. The $i was getting confused.

for i in `cat file`; do find / -type f -name "$i_string*" -exec ls -l {} + ; done

I needed to do this to protect the...
10,180
Posted By cokedude
This the only output I get. Normally my version...
This the only output I get. Normally my version of find does not give any output when it does not find something so I added the execute option. Thats why it was so difficult to figure out.

find:...
10,180
Posted By cokedude
AIX find with Variables
I am trying to do a find with a variable but no matter which way I try it does not work. This is aix. Can I get some ideas on what I am doing wrong?

for i in `cat file`; do find / -type f...
10,643
Posted By cokedude
I apologize for the bad title and description. I...
I apologize for the bad title and description. I have updated the title and description.
10,643
Posted By cokedude
AIX find and delete old backup files
I would like find and delete old backup files in aix. How would I go about doing this? For example:

server1_1-20-2020
server1_1-21-2020
server1_1-22-2020
server1_1-23-2020
server2_1-20-2020...
25,306
Posted By cokedude
This part makes sense. Some users know what they...
This part makes sense. Some users know what they are doing and some don't.

Why unlimited as value is not a good idea unless you know what you are doing AND what the others do:

They said they...
25,306
Posted By cokedude
I only set nofiles = 64000. Do you think that is...
I only set nofiles = 64000. Do you think that is to high? I was just using the above as an example.
25,306
Posted By cokedude
AIX change ulimit for a user
I have seen two different ways for changing the ulimit for a user in aix. Which one is better?

Option 1

edit /etc/security/limits

oracle:
fsize = -1
data = -1
...
10,568
Posted By cokedude
Linux expand dollar sign in single quotes
I am trying to get a dollar sign variable to be expanded in single quotes. Not sure what I am doing wrong. I have tried every way I can think of.

for i in `cat file1`
do
for...
7,620
Posted By cokedude
awk multiple lines
When your data is consistent it is easy to use awk with multiple lines like this. Can we please make this portable so I can use this in both RHEL and AIX?

awk '{RS="/directory1" } $7 ~...
8,976
Posted By cokedude
I have a VERY annoying and poorly written app...
I have a VERY annoying and poorly written app that has to be run as root and I am not allowed to get rid of, that will not stop writing to a directory and filling up the file system. When this...
8,976
Posted By cokedude
Fedora. Sorry.
Fedora. Sorry.
8,976
Posted By cokedude
Stop root from writing to directory
Is there a way to stop root from writing to a directory? I already tried chattr but that did not seem to work.

chattr +i directory
Forum: AIX 10-31-2019
11,001
Posted By cokedude
AIX lsvg strange LV STATE and MOUNT POINT
What does it mean when your LV STATE changes to closed/syncd? What does it mean when your mount point is #? I was not able to mount it or write data to it. So in this case since there was no data in...
13,441
Posted By cokedude
Run awk command inside ssh
I am trying to run an awk command inside of ssh and it is not working. These are AIX servers.

for i in `cat servers`; do ssh $i "/bin/hostname; df -g | awk '/dev/ && $4+0 > 70'"; done
server1...
9,867
Posted By cokedude
Sorry about that. Here it is. >sed...
Sorry about that. Here it is.

>sed 's/[,.!?] */&\n/g' /tmp/ports
1, n2, n3, n4
>sed 's/[,.!?] */\n/g' /tmp/ports
1n2n3n4
9,867
Posted By cokedude
AIX put comma separated data on its own line
In Linux you can do this to put comma separated data on its own line like this.

sed 's/[,.!?] */&\n/g' /tmp/ports
sed 's/[,.!?] */\n/g' /tmp/ports


How do you do this in AIX? It is not...
14,108
Posted By cokedude
Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to [ip address]:25: Connection...
12,301
Posted By cokedude
What about if you are trying to ignore multiple...
What about if you are trying to ignore multiple directories? I was trying to follow this example. I want to search for "*rpm*" in addition to what this example has.

find . -type d \( -path dir1...
12,301
Posted By cokedude
AIX find ignore directory
I am using aix. I would like to ignore the /u directory. I tried this but it is not working.

find / -type f -type d \( -path /u \) -prune -o -name '*rpm*' 2>/dev/null
/u/appx/ls.rpm...
9,627
Posted By cokedude
awk not equal
Did I do something wrong with this awk not equal? For some reason it prints twice.

>awk '{if ($4 != "root") print $1 " " $4 " " $5}' ls_test
server10: njs nodeadm
server10: njs nodeadm
>grep...
12,712
Posted By cokedude
Tar extract Z file
I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option.

tar -xZvf /opt/Nimsoft/nimldr.tar.Z
tar (child):...
17,688
Posted By cokedude
Tar gzip compression rate
How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did.

tar -cvf tar_test.tar.gz -T...
Showing results 1 to 25 of 489

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