Search Results

Search: Posts Made By: Scott
Forum: Web Development 11-08-2018
1,034
Posted By Scott
The problem in the end was in the vB Template,...
The problem in the end was in the vB Template, where $jsGlobalsfromvB was given after the Vue components were loaded, meaning that vbuserId and vbtheURL were not set at the time the components were...
Forum: Web Development 11-08-2018
1,034
Posted By Scott
I see from the source in the test page link you...
I see from the source in the test page link you sent that vbuserId and vbtheURL are both already in scope as Javascript variables, which means you can add them to your data function:


data() {...
Forum: Red Hat 10-16-2018
958
Posted By Scott
Well, if you modify PATH from the command line it...
Well, if you modify PATH from the command line it will be lost when you end your current session. To make it stick, you need to modify the path in one of your login scripts (e.g. .bashrc or...
Forum: Red Hat 10-16-2018
958
Posted By Scott
Perhaps I misread your first post. Did you...
Perhaps I misread your first post. Did you actually edit your .bashrc to add the path to gatk-4.0.10.1, or just change it on the command line?

(second, probably silly question - are you using...
Forum: Red Hat 10-16-2018
958
Posted By Scott
I don't see where you added...
I don't see where you added /usr/bin/gatk-4.0.10.1 to your PATH in the .bashrc. I won't ask why it's in /usr/ and not /usr/local/, though :)
277
Posted By Scott
There are a number of ways to accomplish that....
There are a number of ways to accomplish that. Assuming there is a direct one-to-one mapping between the two input files, then you could do something like:

paste file[12] | while read user pass x;...
342
Posted By Scott
What is wrong with the result ("didn't get the...
What is wrong with the result ("didn't get the result as expected)?

$ sed "s/$/,$(date '+%Y%m%d')/" file
22055,20180930
21088,20180930
93840,20180930
30990,20180930
50990,20180930...
1,006
Posted By Scott
Yes. It works this way because you are reading a...
Yes. It works this way because you are reading a file (sequentially) and processing it as it comes.

if you find red, process that
if you find blue, process that

Yields the same results as
...
303
Posted By Scott
Having added code tags to the data as well, I see...
Having added code tags to the data as well, I see that file1 has a lot of whitespace (spaces and/or tabs) in the fields. If you're using -F to specify a very specific field separator (,), then the...
783
Posted By Scott
There is (as is always the case) a number of ways...
There is (as is always the case) a number of ways of doing this. Here's one with awk:

awk -F'"' '/EqName/ { sub(" ", "_", $2) }1' file
{
EqName Tan_1
....
....
}

{

EqName ...
252
Posted By Scott
You never really mentioned what error you get...
You never really mentioned what error you get when you try to install the package...
237
Posted By Scott
The quotes are there in instruct the shell (with...
The quotes are there in instruct the shell (with regards, for example, to the expansion of shell variables in the case of using single quotes - where the shell would not expand them). In this case,...
505
Posted By Scott
Hello, Boris. If "quiet" (-q) isn't used...
Hello, Boris.

If "quiet" (-q) isn't used then grep will print any text it finds, to standard output (you can, similarly, make it "quiet" using grep >/dev/null). Using -q does not affect the...
532
Posted By Scott
such as it is (although there's a program for...
such as it is (although there's a program for that, called wc :)):

sum=0
while read line; do
sum=$((sum + 1))
done < $1
echo $sum


$ cat -n myFile
1 this
2 is
3 a
...
477
Posted By Scott
I don't really follow you. Nothing will be lost...
I don't really follow you. Nothing will be lost with 'mkdir', despite your earlier assertion that "I think that `mkdir -p` overwrites the directories. I want to avoid that". mkdir doesn't do anything...
1,008
Posted By Scott
I'm not disagreeing with you, per se, but your...
I'm not disagreeing with you, per se, but your claim that "updates have habit of breaking stuff? Debian doesn't do that." seems about as, how did you put it, constructive, as the question.

I'd...
778
Posted By Scott
What error / output do you get? If you're...
What error / output do you get?

If you're using Linux, or have access to GNU grep, so can also do this with:

$ grep -A1 UNIX file
UNIX
Test 5

or with something like:

$ sed -n...
337
Posted By Scott
Have you considered reading "dynamic_years.txt"...
Have you considered reading "dynamic_years.txt" first, in a while-loop, and applying that to the inner for-loop?

e.g.

while read YEAR; do
for i in XYZ_*ABC$YEAR.csv; do
printf "%s\n"...
470
Posted By Scott
You can set that in ~/.profile, if you're using...
You can set that in ~/.profile, if you're using ksh (i.e. not ~/.bashrc or ~/.bash_profile (~=your home directory))

And, obviously, if you prefer using Vi to "emacs" when your shell is Bash, you...
788
Posted By Scott
Your desired output is inconsistent. You want the...
Your desired output is inconsistent. You want the trailing /, or not?

sed "s|\(.*/logs\)[$/].*|\1|" # no
sed "s|\(.*/logs[$/]\).*|\1|" # yes


grep -o can do the same thing, probably more...
1,335
Posted By Scott
I also noticed the command substitution around...
I also noticed the command substitution around the message declaration (message=$(...)), but it's SH and the OS isn't mentioned, so I don't know if that's significant.
14,486
Posted By Scott
I've move this thread from "How to Post in the...
I've move this thread from "How to Post in the The UNIX and Linux Forums". Please stop posting technical questions in that forum.

Please post what you've tried so far, in code tags.
2,083
Posted By Scott
For the last time, please do not post classroom...
For the last time, please do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum...
3,358
Posted By Scott
Again... PLEASE do not post this in the CONTACT...
Again... PLEASE do not post this in the CONTACT forums, but in the technical forums.

Also, do not post classroom or homework problems in the main forums. Homework and coursework questions can only...
715
Posted By Scott
Please post this in the appropriate sub-forum. If...
Please post this in the appropriate sub-forum. If it's homework, post it there. In either case, please show some effort at attempts you've already made to solve this. This forum is for site or...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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