Search Results

Search: Posts Made By: Aia
8,747
Posted By Aia
Hi Lord Spectre Please, review how you have...
Hi Lord Spectre

Please, review how you have executed the code from post #4. Based on your input it should have given you the desired output instead of no output as you mentioned.

Here's another...
1,414
Posted By Aia
One way in Bash could be: n=$(printf "%-9s"...
One way in Bash could be:
n=$(printf "%-9s" 2457)
printf "%s\n" ${n// /0}
245700000
5,315
Posted By Aia
Hello sravani25, If you were to post the...
Hello sravani25,

If you were to post the output of your df -h command it could make it possible to let you know even more.
It is OK for learning and quick iteration what you have done with...
8,360
Posted By Aia
echo $str1 | sed 's/\\n/\n/g' > text.txt
echo $str1 | sed 's/\\n/\n/g' > text.txt
13,116
Posted By Aia
Print count of case insensitive pattern /it/ ...
Print count of case insensitive pattern /it/
echo "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness..." |
perl -nle '$c+=()=/it/gi;...
Forum: Fedora 09-09-2018
13,830
Posted By Aia
A segmentation fault core dump is not due to user...
A segmentation fault core dump is not due to user unfamiliarity. It is a program misbehavior outside the user control. In this case it appears that the extundelete utility has fallen out of...
1,321
Posted By Aia
What you are asking can be done with ClusterSSH.
What you are asking can be done with ClusterSSH.
5,289
Posted By Aia
Take a look at what SELinux is doing for you.
Take a look at what SELinux is doing for you.
Forum: What is on Your Mind? 09-09-2018
2,785
Posted By Aia
I am sorry if I ever gave you the impression that...
I am sorry if I ever gave you the impression that I was somewhat inferring that you or UNIX.COM should be in the Cloud. My post was prompted as a personal opinion following in the same spirit of...
Forum: What is on Your Mind? 09-09-2018
2,785
Posted By Aia
I would like to repeat that it is all about CI/CD...
I would like to repeat that it is all about CI/CD ( I do not have to highlight it since I made myself clear before). Companies (customers) that do not implement CI/CD for the most part do not...
4,925
Posted By Aia
Sure it does, but as soon as it sees that you are...
Sure it does, but as soon as it sees that you are giving it a glob it wants you to identify where the options ends and where the files start, it case that there's a file starting with a -, it doesn't...
2,438
Posted By Aia
The place holder for whatever you script is...
The place holder for whatever you script is named, the one you want to re-write.
4,925
Posted By Aia
Try zip -u -q Desktop_Items.zip ./*.desktop as it...
Try zip -u -q Desktop_Items.zip ./*.desktop as it says: Use ./*glob*

or zip -u -q Desktop_Items.zip -- *.desktop as it says:or -- *glob*
2,438
Posted By Aia
I question the wisdom of what you are trying to...
I question the wisdom of what you are trying to do, but I will not elaborate unless you care to share.

Please, try the following:

perl -pe 'BEGIN{%id=(1=>2, 2=>3, 3=>4, 4=>1)}...
Forum: Red Hat 09-08-2018
7,192
Posted By Aia
Since there was no testing previously in an...
Since there was no testing previously in an identical testing machine, this box has become the testing one now. No testing, no confidence in anything.
You can test if it doesn't break anything by...
3,293
Posted By Aia
grep -q is more than just suppressing any output,...
grep -q is more than just suppressing any output, it will exist with success as soon as it finds a match, avoiding to continue searching any other lines in the file until it reaches the end of the...
3,293
Posted By Aia
The -q means to be quiet or do not output...
The -q means to be quiet or do not output anything to stdout but only exit with a zero (success) as soon as one match is found.
The -F means to interpret the search pattern as a string and not as a...
5,219
Posted By Aia
The issue of the unwanted format is echo...
The issue of the unwanted format is echo "$file". The echo has an implicit appended newline.

Here's a fix without much change to your code
duration=$(ffmpeg -i $file 2>&1 | grep Duration |cut -d...
871
Posted By Aia
We have pssh for parallel ssh on multiple remote...
We have pssh for parallel ssh on multiple remote hosts
We have Ansible that it uses ssh as well.
We have Salt which can make use of ssh for ad-hoc but it is designed to be configured with an agent....
1,364
Posted By Aia
You must protect $input by surrounding it with {}...
You must protect $input by surrounding it with {} like ${input} otherwise the shell thinks
you want to expand a variable named $input_string2 which has not been defined.
4,290
Posted By Aia
How can we help you? What's your question? What...
How can we help you? What's your question? What isn't working? How is it not working? What's the desired result that you are not getting? What's your intend?
1,470
Posted By Aia
Your problem is not unique and it has been solved...
Your problem is not unique and it has been solved long time ago. Configure busybox syslogd to send message logs to a remote logging service (a remote server).

If you want to rediscover the wheel...
852
Posted By Aia
No Perl? That's too bad. I do not see a reason...
No Perl? That's too bad. I do not see a reason for sed.
while read -r replacement && read -r line <&3; do
#echo $line | sed s/YYYY/"$replacement"/ # for reference purposes.
echo...
3,606
Posted By Aia
Alternatively: perl -ne '/testtt/ and print...
Alternatively:

perl -ne '/testtt/ and print "$_$keep"; $keep=$_ if /@/' test.file
5 testtt 11223344
1 His email address alfredo@alfredo.ru
14 testtt 55667788
8 His...
945
Posted By Aia
Hi, annacreek I do not mean to offend you...
Hi, annacreek

I do not mean to offend you but I suggest you stop the sermons and place more pondering to what willing people is telling you.

I understand code but I do know what's in your head...
Showing results 1 to 25 of 500

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