Search Results

Search: Posts Made By: Kibou
1,319
Posted By Kibou
Hello, As Don said, that fixed an error. Now...
Hello,

As Don said, that fixed an error. Now you have a new one.

If you just want to extract the percentage, try something like this:

mountpoint=$(df -h /home | awk -F' |%' '{print $17}' |...
1,625
Posted By Kibou
Sample output, kibou@laptop:~$ touch...
Sample output,

kibou@laptop:~$ touch /tmp/file{1..5}
kibou@laptop:~$ find /tmp/ -name file*
find: Las rutas deben preceder la expresión: file1
Uso: find [-H] [-L] [-P] [-Onivel] [-D...
1,625
Posted By Kibou
This can be easily mistaken after you have seen...
This can be easily mistaken after you have seen something like this

find -name "*.jpg"

which it does actually expands. The find command does not expand the same way the shell does.
1,417
Posted By Kibou
I am sure it must be a more elegant solution and...
I am sure it must be a more elegant solution and more efficient.

If I understood correctly, you want to rename the file BW*2014*.csv if the field 12 is "No" and remove those lines matching.

#...
1,068
Posted By Kibou
Just this little detail in case our friend...
Just this little detail in case our friend doesn't know how to add a Field Separator,
1,963
Posted By Kibou
I could help Scrutinizer trying to explain the...
I could help Scrutinizer trying to explain the example with sed.

sed '/Policy Name/,/End of Policy/d' file


To find text you put it between / /
So if you want to find some text you can do it...
26,507
Posted By Kibou
If you want to make your scripts work in bash, I...
If you want to make your scripts work in bash, I am currently doing a migration from AIX to RHEL and we've found these issues:

- Variables in AIX inside a test can be without a preceding "$"....
1,403
Posted By Kibou
I just tried rename as you posted to check it and...
I just tried rename as you posted to check it and it didn't do anything. So I changed to this,

rename 's/product_host_result/output_product_host/' product_host_result*.txt

and this worked to...
863
Posted By Kibou
May I try to explain it? awk -F"[,;]" -> You...
May I try to explain it?

awk -F"[,;]" -> You are telling to awk what you want awk to consider what is going to be the Field Separator (FS). You have to tell awk what is going to be the Field...
10,794
Posted By Kibou
Thanks so much. I have learned a lot. Here...
Thanks so much. I have learned a lot.

Here is the final version of the script. It works like a charm!

tempfile=$(mktemp -t XXXXXXXX.$$) || exit 1


(tail -f file | grep --line-buffered...
Showing results 1 to 10 of 10

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