Search Results

Search: Posts Made By: Aia
322
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...
381
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
526
Posted By Aia
cat p.py #!/usr/bin/env python3 data = {} ...
cat p.py
#!/usr/bin/env python3

data = {}
with open("file-to-search.txt") as f2s:
for line in f2s:
fields = line.split()
fields.pop(1)

if fields[0] in data:
...
Forum: Shell Programming and Scripting 3 Weeks Ago
699
Posted By Aia
Command: perl -ne '/^\d/ and $c=$_ and next;...
Command:
perl -ne '/^\d/ and $c=$_ and next; $ip{$c} .= $_; END{for $i (sort keys %ip){print "$i$ip{$i}"}}' report1.txt
Output:
10.9.11.128
-rwxr-xr-x user1 2019-12-29 17:53...
577
Posted By Aia
perl -ple 's/\w+?(\d{4})[._]/$1 $&/'...
perl -ple 's/\w+?(\d{4})[._]/$1 $&/' kumarinfa.file

Output:

-rw-r--r-- 1 360 600 94255 Jan 01 11:16 2020 file1_2020.csv
-rw-r--r-- 1 360 600 114573 Dec 29 11:10...
130
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...
Forum: Shell Programming and Scripting 3 Weeks Ago
589
Posted By Aia
echo ${A_LIGNE/${A_PATTERN}} Output: cnezJ,V...
echo ${A_LIGNE/${A_PATTERN}}
Output:
cnezJ,V ,FMZ fd,Mok CODKJ,F fcnQ, VMQKV Q

A mock-up of your specific question:
A_LIGNE=" cnezJ V ,FMZ fd,Mok CODKJ,F SOME_WORD fcnQ, VMQKV Q"...
Forum: Shell Programming and Scripting 3 Weeks Ago
642
Posted By Aia
echo $str1 | sed 's/\\n/\n/g' > text.txt
echo $str1 | sed 's/\\n/\n/g' > text.txt
Forum: Shell Programming and Scripting 3 Weeks Ago
632
Posted By Aia
The backslash is not a metacharacter in a POSIX...
The backslash is not a metacharacter in a POSIX compliant bracket expression. Therefore [\s] will match the characters \ or s instead of white space.
893
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: Shell Programming and Scripting 4 Weeks Ago
940
Posted By Aia
ls *dups.bam \ | xargs -I % echo --bam % \ |...
ls *dups.bam \
| xargs -I % echo --bam % \
| xargs python "${path_to_strelka}"/bin/configureStrelkaGermlineWorkflow.py \
--referenceFasta "${fasta}" --callRegions "${bed}" --exome \
--runDir...
Forum: Fedora 09-10-2018
2,766
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...
295
Posted By Aia
What you are asking can be done with ClusterSSH.
What you are asking can be done with ClusterSSH.
1,095
Posted By Aia
Take a look at what SELinux is doing for you.
Take a look at what SELinux is doing for you.
283
Posted By Aia
Substitute the highlighted for just -i
Substitute the highlighted for just -i
Forum: What is on Your Mind? 09-09-2018
832
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
832
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...
Forum: What is on Your Mind? 09-09-2018
832
Posted By Aia
Sorry, Neo, if I struck a nerve there, but I...
Sorry, Neo, if I struck a nerve there, but I never said that CI/CD are engineering principles. I said that the Cloud is appreciated by those customers that implements CI/CD as part of their...
500
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...
500
Posted By Aia
It appears that the zip utility you are using,...
It appears that the zip utility you are using, does not know what's an option and what's a file to work upon, if you give it a glob (which it could represent one or more files). So it wants you to...
365
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.
459
Posted By Aia
Give it a try as \r?\n
Give it a try as \r?\n
500
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*
365
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: What is on Your Mind? 09-08-2018
832
Posted By Aia
It is all about Continuous Integration and...
It is all about Continuous Integration and Continuous Delivery and Continuous Deployment. (CI/CD) If a customer does not see value on it, it might not be able to appreciate what the Cloud does...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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