Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: zaxxon
Forum: AIX 07-06-2017
1,276
Posted By zaxxon
Some starting ideas: - process table with ps...
Some starting ideas:
- process table with ps -ef and check entries using a tty
- lslpp -h to find out if there is a package installed at some given date
687
Posted By zaxxon
$ awk -F, 'BEGIN{print "COL1,COL2"} NR>1 && $9...
$ awk -F, 'BEGIN{print "COL1,COL2"} NR>1 && $9 {print $1,$6}' OFS=, input.csv
COL1,COL2
1111,X100
3333,X300
4444,X400
1,188
Posted By zaxxon
See my comment in your post on using "urgent" in...
See my comment in your post on using "urgent" in the topic, thanks.

Your first script uses ksh syntax to declare an array with set -A. In your second script you use a shebang to call bash, which...
2,266
Posted By zaxxon
If you want to prevent that someone changes this...
If you want to prevent that someone changes this script, that person can also just comment those lines.
Maybe an IDS (Intrusion Detection System) like Tripewire etc. is the better choice to watch...
3,605
Posted By zaxxon
The number of records which is NR contains the...
The number of records which is NR contains the current line number. awk has an END{} block, where when it is reached NR will have the number 21 as value in your case.
Anyway, I second what the...
672
Posted By zaxxon
Try: awk 'BEGIN{for(i=1;i<=6;i++) print i}'
Try:
awk 'BEGIN{for(i=1;i<=6;i++) print i}'
1,288
Posted By zaxxon
I am sorry to say it but it seems that you lack...
I am sorry to say it but it seems that you lack so many basic fundamental things working with Unix/Linux and it also seems that all those really many threads of yours in the forum and all the answers...
753
Posted By zaxxon
You already have 317 posts in this forum and I...
You already have 317 posts in this forum and I bet you got lots of hints to your questions in the past. What would be the most obvious "bad habit" in this script?
650
Posted By zaxxon
Try: who | cut -d" " -f1
Try:

who | cut -d" " -f1
Forum: Cybersecurity 02-06-2017
6,447
Posted By zaxxon
If the modem/router is delivered/sold by the...
If the modem/router is delivered/sold by the provider and they deny support, they might lose a customer next time ;)
Anyway, I have no clue about this but you can get alternative FW for...
4,460
Posted By zaxxon
@OP: Please stop ignoring helpful answers and...
@OP:
Please stop ignoring helpful answers and just stop repeating your demanding behaviour if it is not already presented in a way, that you can copy & paste it. This is very bad behaviour. You can...
Forum: AIX 09-30-2016
3,063
Posted By zaxxon
:D:D Sorry I have to laugh, but those guys in...
:D:D Sorry I have to laugh, but those guys in Bulgaria remind me of a Deja Vu with another big company that seems to have found the same cost friendly country to place their support at. Those poor...
821
Posted By zaxxon
Here another solution without iterating through...
Here another solution without iterating through all NF but using the field separator:

$ awk -F"^[0-9]+ " '$2 !~ /3/' infile
3246354401 1
3290753729 5 4
3292553369 1 1 1 4


@jiam912:
You...
Forum: AIX 09-07-2016
1,715
Posted By zaxxon
After formatting and indenting your script, there...
After formatting and indenting your script, there also seems to be missing 2 times fi to close the opening if.
Having a glance at your script I wonder if you ever tested any parts of it when writing...
2,647
Posted By zaxxon
Leave out wget's -q, which stands for "quiet"....
Leave out wget's -q, which stands for "quiet". Also remove the 2>&1 to see which errors/messages are being written to STDERR.

If you want to see all things that are written to STDOUT too, leave...
706
Posted By zaxxon
I added some "permission denied"... something...
I added some "permission denied"... something like this?


$ cat infile
cp: writing `/testX/file2016-08-11_07-03-10AM/ext/lib/libclntshcore.so.12.1': No space left on device
cp: writing...
Forum: AIX 08-11-2016
3,250
Posted By zaxxon
Hi gull04, it's now sadly some time ago I...
Hi gull04,

it's now sadly some time ago I actively worked with these beside some courses, but here we go (I hope the other guys correct me if there is an error in my explanation):

Basically...
868
Posted By zaxxon
What about adding a comparisson if $i is greater...
What about adding a comparisson if $i is greater than 0? If so, maybe print $i and NR so you know which line it is found at.
If you can write an awk statement like this, you can surely add this. Try...
808
Posted By zaxxon
You did not specify an exact end of the string...
You did not specify an exact end of the string and so you get the pattern each time it is a match.

Try:

sed -n "/Start_of_DISK_info:\/u$/,/End_of_DISK_info:\/u$/p" data.txt
892
Posted By zaxxon
Your DATE is not correct, the time is missing....
Your DATE is not correct, the time is missing. The new column can be just written, as you wrote any other text in your print. DATE can be handed over to awk with -v:


$ DATE=$(date +"%Y-%m-%d...
Forum: What is on Your Mind? 07-22-2016
1,433
Posted By zaxxon
Chapeau Scruti :)
Chapeau Scruti :)
1,844
Posted By zaxxon
Hi, if it is inside a loop, you can leave it...
Hi,

if it is inside a loop, you can leave it with the break command. You can also just exit the whole script, if there is nothing anymore to do.
3,564
Posted By zaxxon
IFS can be more than one character ie. a string,...
IFS can be more than one character ie. a string, but not a group of characters.

You want to do something like this?


$ OLDIFS=$IFS
$ IFS="#x#"
$ ALLMYDATA="file1#x#file2#x#file3...
579
Posted By zaxxon
Maybe check the official site or join their...
Maybe check the official site or join their mailing list and ask there:
rsync (https://rsync.samba.org/)
Forum: AIX 07-13-2016
914
Posted By zaxxon
The : are just separators. The values in between...
The : are just separators. The values in between are paths, as the name of the variable PATH says.
The . is the current directory.
Exporting this will allow to call executable files from your...
Showing results 1 to 25 of 449

 

Featured Tech Videos

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