Search Results

Search: Posts Made By: busyboy
8,468
Posted By busyboy
my apologies Its a Centos-7 Box with both...
my apologies

Its a Centos-7 Box with both BASH and SH available.

I want to display the inputs as well when the input is coming from a file ( only when the input is coming from file not in...
8,468
Posted By busyboy
Script input from File using <
my shell script is taking inputs like

#./makeit.sh
Enter Your First Name: Me
Enter Your Last Name: Me
Enter Your Address: My City
Enter Your Phone Number: 394859

Hi Me, Me
You live in...
62,583
Posted By busyboy
Array based selection of values by selecting either index or member
say I have


istofitems="beans rice carrots radishes rutabaga spinach"



and I want the end user to select something like below


Please enter the veg you like from

1 ) beans
...
12,046
Posted By busyboy
as far as I can see your new box is ready to...
as far as I can see your new box is ready to serve PHP from within the HTTPd server -- provided

You have php-fpm package installed for your server -- which is a YES from your list of php...
3,263
Posted By busyboy
the exact narration is execute 10 jobs in ...
the exact narration is

execute 10 jobs in either background or foreground -- wait for all them to finish and then start the next 10 or whatever count is coming from the next batch of files.
...
3,263
Posted By busyboy
Start process on X number of files and then wait for the next batch
Thanks for RudiC for his extraordinary help on organizing files in a batch of 10 using below code.

FL=($(ls));
for ((i=0;i<=${#FL[@]};i++)); do
for j in ${FL[@]:$i:10};
do
$batch ${j} ...
2,323
Posted By busyboy
root# uname -a Linux hippo 3.16.0-8-amd64 #1...
root# uname -a
Linux hippo 3.16.0-8-amd64 #1 SMP Debian 3.16.64-2 (2019-04-01) x86_64 GNU/Linux


root# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"...
2,323
Posted By busyboy
Counter based on 10 files or less
there are around 676 files in a directory and I want to batch every 10 and then remaining 7 files as well for a batch pressing job simultaneously.

I'm trying to pick-up every 10 counter'd files...
3,113
Posted By busyboy
Gawk --- produce the output in pattern space instead of END space
hi,

I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is

HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP...
1,267
Posted By busyboy
@vgersh99 Thanks for the idea. it works for...
@vgersh99

Thanks for the idea. it works for me as a standard input is concerned...

the problem is that I'm combining the result into this format in AWK's action panel( or action part) and then...
1,267
Posted By busyboy
Here the END part is trying to do a scanning on...
Here the END part is trying to do a scanning on the array of input being built in the action panel of gawk

gawk '/pmd/ {
split($1,IP," ");
x[IP[2]]++;
y[n++]=IP[2]"--"$2;} END {
for(i in...
845
Posted By busyboy
trying changing this field SendFromField="Neds...
trying changing this field
SendFromField="Neds Understudy <neds.roster@hotmail.com>" # From:

to

SendFromField="neds.roster@hotmail.com" # From:
1,267
Posted By busyboy
Many to many -- mapping
INPUT

13333--TEXT1
14444--TEXT2
13333--TEXT3
12233--TEXT5
14444--TEXT5
12233--TEXT1
12222--TEXT5
13333--TEXT09


what I'm looking for is something using awk arrays with below given...
7,487
Posted By busyboy
awk -v qq='"' '{ print $3; cmd="echo " qq $3 qq"...
awk -v qq='"' '{ print $3; cmd="echo " qq $3 qq" | base64";cmd| getline x;close(cmd); print x }' myFile

worked for me ;;; thanks for your help @vgersh99
7,487
Posted By busyboy
$2 is a url data ;;; from apache2 logs... just...
$2 is a url data ;;; from apache2 logs... just need to encrypt them using base64.
7,487
Posted By busyboy
I was expecting this from you only @RudiC......
I was expecting this from you only @RudiC... Actual input is very thin to paste here..this is why I specifically mentioned in 2nd response that I need to encode $2 using base64 (only).. forget the...
7,487
Posted By busyboy
Here is the sample input My apologies to...
Here is the sample input

My apologies to re-edit. I need to encode $3 in this below given input into base64 for a later decoding( only $3 encoding is required, while rest is already used in...
7,487
Posted By busyboy
Base64 conversion in awk overlaps
hi,

problem:
output is not consistent as expected using external command in AWK

description:

I'm trying to convert $2 into a base64 string for later decoding, and for this when I use...
1,871
Posted By busyboy
thanks RudiC perfectly explained... Thanks...
thanks RudiC

perfectly explained... Thanks again.
1,871
Posted By busyboy
learned to initialize array in awk, ...
learned to initialize array in awk,

@scrutinizer, I tried your code with a[n] as below it didn't give any success,

/^tcp/ && ( a[n] in q ) {
printf "%s port is not listed in...
1,871
Posted By busyboy
looks to me great, but what is "p"...
looks to me great,

but what is "p" here..thanks

---------- Post updated at 05:46 PM ---------- Previous update was at 04:20 PM ----------

I'm getting this when I run your code @Scrutinizer ...
1,871
Posted By busyboy
Array to array scanning
trying a little bit of array scanning for open ports.

my code looks like below:



/bin/netstat -lntp|\
awk 'BEGIN { split("25 80 2020 6033 6010",q); }
$1 == "tcp" { split($4,a,":");...
1,492
Posted By busyboy
SVN for actual VirtualHost
hi,


Earlier I had this thread posted on "UNIX for Experts" Group here in unix.com, but somehow no one bothered to respond, so I thought someone might be able to help me here.

In short,

I...
2,042
Posted By busyboy
SVN main directory sync
I'm quite new to SVN and having configured it based on tutorials from youtube etc, I have it setup like below:

* User1 and User2 can commit and update using their own passwords,
* Updates from...
2,642
Posted By busyboy
the question is to find all KEY ( $1) for a given...
the question is to find all KEY ( $1) for a given name ( if $2 and $3 are more than once )
Showing results 1 to 25 of 220

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