Search Results

Search: Posts Made By: Aia
1,950
Posted By MadeInGermany
Be careful with echo and with unquoted variables...
Be careful with echo and with unquoted variables in command arguments!
From [Tip] A better echo (https://www.unix.com/shell-programming-and-scripting/283413-tip-better-echo.html)
# Portable echo -e...
Forum: What is on Your Mind? 09-09-2018
919
Posted By Neo
It's all good ..... Typing in messages about...
It's all good .....

Typing in messages about concepts tends to lead to different ideas and trains of thought.

I thought you were asking me if I considered moving to the cloud and why not, and...
Forum: What is on Your Mind? 09-08-2018
919
Posted By Neo
I am not into VPS and clouds. We have tried them...
I am not into VPS and clouds. We have tried them many times.

They are not reliable and perform poorly.

My experience is if you want reliability, spend the money and get a dedicated server in...
Forum: What is on Your Mind? 09-08-2018
919
Posted By Neo
Cut Over to New Data Center and Upgraded OS Done. :)
Three days ago we received an expected notice from our long time data center that they were going dark on Sept 12th.

About one and a half hours ago, after three days of marathon work, I just cut...
789
Posted By Scrutinizer
Hi drl, yes of course we know what they meant to...
Hi drl, yes of course we know what they meant to say, but not thanks to that wiki content.

I was just trying understand the words "interpolating" and "performing translation of localised strings"...
789
Posted By drl
Hi, Aia. Yes, I noted that. His title was...
Hi, Aia.

Yes, I noted that. His title was What is the meaning the $ special character?

He also asked ...explain to me how it's categorized and it's extract [sic] definition?

He did not...
2,103
Posted By MadeInGermany
The glob /home/linux/txt/output/ABC_DEFGH* cannot...
The glob /home/linux/txt/output/ABC_DEFGH* cannot filter for file age.
But you can do all with find, even limit the search depth
if cd /home/linux/txt
then
find . -maxdepth 1 -type f -name...
941
Posted By Don Cragun
Hi Aia, Thank you for helping Kalia, I think...
Hi Aia,
Thank you for helping Kalia, I think you missed a pair of double-quote characters. With:
pattern="good script"
... ...
if [ grep -q $pattern "$filename" ]; then
the expansion of...
739
Posted By durden_tyler
And here's another approach in case you're...
And here's another approach in case you're comfortable with Perl and regular expressions:


$
$ perl -plne 's/"\w+"\s+:(\s+\w+\("|\s+\w+\(|\s+"|\s+)//g;
s/"\s*$//;
...
797
Posted By yan1
Thanks to all the helpers. Don - you are...
Thanks to all the helpers.
Don - you are correct - I should have stated my problem better, didn't mean no offence by the partial comment.

This is my first post - I will check my input file and...
1,206
Posted By ken6503
thanks for the suggestion, I'll review the old...
thanks for the suggestion, I'll review the old post to find the solution first in the future.
669
Posted By timj123
Thanks Aia! I was stumped, big time. I...
Thanks Aia!
I was stumped, big time. I appreciate your time looking into this for me.
I also wanted to tell you that I learn a lot from your posts on this forum.
1,593
Posted By vbe
So true Don, I went once long ago through that...
So true Don, I went once long ago through that sort of bad experience... its not rm but cp I had to rewrite (not my idea but I was the system analyst at the time and was asked by IT director...) ...
2,645
Posted By RudiC
man crontab :
man crontab :
709
Posted By durden_tyler
$ $ cat file1 S 40149.00 47897.00 11 ...
$
$ cat file1
S 40149.00 47897.00 11 453310.8 2443363.8 131.9348000413
S 40573.00 47897.00 11 453312.3 2448664.5 131.4348000422
S 40147.00 ...
9,463
Posted By Don Cragun
Even if success, failure, page, and file are...
Even if success, failure, page, and file are variables that contain strings consisting of decimal digits, <period> is not an operator in awk that can be used to join two strings. The names of files...
1,750
Posted By sumang24
The above command still gave me single files. ...
The above command still gave me single files.
The output looks like:
-rw-r--r-- user/user 33935 2015-12-05 13:41 ./File1.xml
-rw-r--r-- user/user 67306 2015-12-04 20:43 ./File2.xml
-rw-r--r--...
1,205
Posted By cmccabe
I had something similar @Aia awk...
I had something similar @Aia


awk '{split($4,a,"|"); print $1,$2,$3,a[1],"|",a[3],$6}' input
chr1 955543 955763 AGRN-6 | gc=75 +
chr1 957571 957852 AGRN-7 | gc=61.2 +
chr1 970621 970740...
1,416
Posted By vgersh99
that was very helpful - thanks. Based on my...
that was very helpful - thanks.
Based on my somewhat limited experience in these forums, providing a sample input and the desired output (using code tags) is the best approach.
847
Posted By Chubler_XL
From bash you could do (Based on RudiC's awk...
From bash you could do (Based on RudiC's awk script):

for file in *.out
do
log=""
while read line
do
case "$line" in
appname:\ *) echo "${line#* }" ;;
...
1,814
Posted By Peasant
Check out man test Hope that helps ...
Check out man test

Hope that helps
Regards
Peasant.
7,981
Posted By MadeInGermany
The suggested solutions remove the sequent...
The suggested solutions remove the sequent duplicates, keeping the first instance.
The requirement, keeping the last instance, is far more complex.
The most comprehensive solution is perl:
perl...
483
Posted By yuejian
Thanks Aia, it works perfectly. Also thanks for...
Thanks Aia, it works perfectly. Also thanks for point my mistake and I will be more careful when I post my question.
1,041
Posted By Corona688
I knew it the instant I saw your garbled error...
I knew it the instant I saw your garbled error messages. They are garbled because the \r is sending the cursor to the beginning of the line without sending it down one line, causing partial...
3,113
Posted By kojac
Hi Don, I guess I've trying so many...
Hi Don,
I guess I've trying so many combinations of the command I automatically typed in the -d.

Your suggestion worked! Much much thanks!
+Kojac

---------- Post updated at 06:10 PM...
Showing results 1 to 25 of 53

 

Featured Tech Videos

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