Search Results

Search: Posts Made By: Aia
11,492
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
6,295
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
6,295
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
6,295
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...
2,950
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"...
2,950
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...
9,783
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...
2,516
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...
1,407
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*$//;
...
1,961
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...
4,274
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.
1,543
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.
4,703
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...) ...
5,373
Posted By RudiC
man crontab :
man crontab :
1,233
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 ...
33,187
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...
6,524
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--...
3,767
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...
2,350
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.
1,486
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#* }" ;;
...
3,304
Posted By Peasant
Check out man test Hope that helps ...
Check out man test

Hope that helps
Regards
Peasant.
11,544
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...
937
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.
2,759
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...
6,444
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

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