Search Results

Search: Posts Made By: junior-helper
4,342
Posted By Scrutinizer
In bash try: GLOBIGNORE=*.*.dat ls *.dat
In bash try:
GLOBIGNORE=*.*.dat
ls *.dat
Forum: Debian 06-28-2017
7,937
Posted By Corona688
What GUI volume control is available depends on...
What GUI volume control is available depends on your window manager.

You could also try alsamixer / amixer in console.
6,740
Posted By rbatte1
I would worry that your script will not start...
I would worry that your script will not start again after a server boot, network hiccup or other trauma that stops it, hence why I suggest scheduling it as discreet test rather than the infinite...
4,422
Posted By RavinderSingh13
Hello kiranparsha, Following may help you...
Hello kiranparsha,

Following may help you in same to get last year month December's files. I just created some test files and got the output.

Test files with last year's dates are as follows....
Forum: UNIX and Linux Applications 12-19-2014
9,058
Posted By xabbu
Budrys, postfix is the MTA (Mail Transport...
Budrys,
postfix is the MTA (Mail Transport Agent) it will only deliver mails to an Imap/Pop3 Server.
I recommended dovecot.
There are several howtos to use dovecot with postfix.
And roundcube...
2,380
Posted By cmccabe
ls | head -3 tcode-pdf.txt ...
ls | head -3
tcode-pdf.txt
test-pdf.php@testid=4125
test-pdf.php@testid=4143


I manually copied over the tcode-pdf.txt as it was not there. Thanks for your help :).

I also attached...
10,683
Posted By Scrutinizer
Sure: -t, Use a comma as...
Sure:

-t, Use a comma as the field separator
-k1,2 Specify fields 1 and 2 as the primary key
-k3.7,3.10 Specify the 7th character through the 10th...
4,354
Posted By ongoto
@ junior-helper Your awk example works...
@ junior-helper

Your awk example works perfect here. You helped me find and fix some things in my script that have been bugging me.

Thanks mate.

P.S. Your unit count is one more than...
2,533
Posted By Don Cragun
If just the values associated with the keywords...
If just the values associated with the keywords were wanted (instead of keyword and value), it would be simpler to use the default awk field delimiters and look for the keywords with the colons...
1,081
Posted By Scrutinizer
Try: awk 'NR==FNR{A[$1]; next} FNR in A' file2...
Try:
awk 'NR==FNR{A[$1]; next} FNR in A' file2 file1
2,091
Posted By Don Cragun
You haven't said what OS you're using. On some...
You haven't said what OS you're using. On some systems test -a file tests for the existence of any file named file; on others it is a binary and operator between two expressions. It would be safer...
1,035
Posted By vgersh99
or alternatively: awk -F, 'FNR==NR{if...
or alternatively:

awk -F, 'FNR==NR{if ($2==23) no[$1]; next} !($1 in no)' myfile myfile
9,830
Posted By sea
Note that i 'had' to change the morse-codes per...
Note that i 'had' to change the morse-codes per letter to be without a ;, furthermore it requires now a ; before SP (read: after every letter).
But 'forcing' that, one can switch between 2 output...
9,830
Posted By sea
Thats a fun excercise :D Here is my test to...
Thats a fun excercise :D

Here is my test to reverse the input as well:
I mean, it has to be able to translate it both ways, doesnt it? ;)
+ ~ $ morse "Hello UNIX DOT com"...
1,713
Posted By Don Cragun
I'm glad to hear you solved your problem. So...
I'm glad to hear you solved your problem. So other people reading this thread can learn from your question, will you show us how you fixed it?

I was going to suggest trying:
sed...
1,508
Posted By Don Cragun
Hi junior-helper, I don't know why you would...
Hi junior-helper,
I don't know why you would use ls -l when you only want names or why you would use ls -r when you want files in forward order.

Why not just ls -t > filelist.txt to get your list...
Forum: AIX 11-21-2014
8,607
Posted By Don Cragun
The find -xdev primary only helps if the...
The find -xdev primary only helps if the subdirectories are all mount points for different filesystems. However, the following command should do what you want:
find . \( -type d ! -name . -prune...
2,916
Posted By qwerty000
Email IDs added to .mailrc aliases not receiving mails
Okie - Sorry for the confusion. Will try explaining again - hope the picture gets clearer now.

My intent - I am trying to add a new userid to an existing alias in .mailrc.

Overview:-
There are...
720
Posted By Chubler_XL
junior-helper be careful of x.x as it would match...
junior-helper be careful of x.x as it would match in strings like "box xmas gifts". That is why Corona688 used x[.]x in his RE.

I'd also be tempted to remove some unnecessary quotes like this:
...
1,423
Posted By jim mcnamara
One way with awk and tr: awk ' /^Queue/...
One way with awk and tr:

awk ' /^Queue/ {printf ("%s ", $2)}
/max queue depth/ {print $3} ' infile | tr -d '[:punct:]' > newfile



On solaris use nawk and /usr/xpg4/bin/tr
2,202
Posted By Corona688
I think you meant "infamous". You can avoid...
I think you meant "infamous".

You can avoid the eval. Never store quotes to parse them later, just store the parameters exactly as you want them -- minus quotes -- in an array or positional...
11,048
Posted By RudiC
It seems to work because $COL will evaluate to $0...
It seems to work because $COL will evaluate to $0 when COL has a string value. So your code will match $0 against "vinay" and print the entire first line. Test this by setting col='$3' or adding some...
45,105
Posted By Don Cragun
Your code assumes that each patient will only...
Your code assumes that each patient will only have one panel (so you have your user enter a patient ID and a panel number together). My code assumes that a single patient will frequently go through...
45,105
Posted By Don Cragun
I'm a little bit confused. You say you're...
I'm a little bit confused. You say you're learning awk, but there is no awk code in this thread.

Drawing ASCII art may be easier in vi than in notepad++, but you shouldn't have any problem even...
10,561
Posted By Ditto
Well, that's why I suggested external tables...
Well, that's why I suggested external tables first :)

But from a DB standpoint, I see the data as needed in the database, hence the load. Agreed, he didn't explicitly ask how to load it, but...
Showing results 1 to 25 of 37

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