Stack Overflow
   21 tags on

1 answer

AWK convert big unsigned int to signed int (binary)

in AWK i've got in one of fields some big values, like 3758096383 (in hex : DFFFFFFF). I want to convert this value into signed int (in this example -536870913, in hex same value DFFFFFFF). Is there ...

0 answers

move_upload .mp4 file not uploading

The problem I am experiencing is that It allows me to upload any file which is fine however when I try to upload a .mp4 which I want to be allowed to upload it doesn't complete the upload. If I upload ...

2 answers

Unix - Print Common Lines side by side

I want to compare 2 unsorted files and print the common lines side by side File1 a 1 2 b 2 4 c 1 4 e 1 2 File2 a 0 3 c 1 4 d 3 4 b 2 4 output1 a 1 2 0 3 b 2 4 2 4 c 1 4 1 4 output2 a 1 2 ...

2 answers | 5 mins ago by Aparna on Stack Overflow stackoverflow.com
0 answers

SIGCHLD not delivered when a process exits

I need to detect when one of my background processes exits. Hence, I installed a trap. run_gui and run_ai1 are simple exec functions. run_gui & gui_pid=$! run_ai1 & ai1_pid=$! trap 'echo ...

0 answers

Pushing to a forked repo after clone from original

I am working on a project and I forked a repo from a team member who forked it from the original repo. He created a new branch with the same files and made changes in it. However I cloned the ...

0 answers

gitignore not working with wildcards

I have the common problem of gitignore not ignoring files. Since the files were tracked (and committed) prior to adding them to gitignore I have tried the usual: git rm -r --cached . git add . git ...

10 mins ago by Wt Riker on Stack Overflow stackoverflow.com
1 answer

Git Personal Access Token works with Eclipse but not in Git Bash

I have a Git repository that I have configured to work with Eclipse. When I try to push to the repo from Eclipse, I give it my username and a Personal Access Token generated from GitHub, and it can ...

1 answer

git: cherry-pick in bare repo

My server-side bare git repo needs to periodically cherry-pick commits from a special branch onto master (executed from a hook). Is there any way to avoid a checkout and do this directly in the bare ...

1 answers | 14 mins ago by Irfy on Stack Overflow stackoverflow.com
2 answers

Extract text between symbols with bash

First off, I am relatively new at this, so please bear with me. I have an annotated transcriptome .fasta file, which contains ~60,000 records of genes like these two: >comp35897_c0_seq11 len=1039 ...

2 answers | 15 mins ago by Michael Studivan on Stack Overflow stackoverflow.com
10 answers

Ruby equivalent to grep -v

This is what I've been doing instead: my_array.reject { |elem| elem =~ /regex/ }.each { ... } I feel like this is a little unwieldy, but I haven't found anything built in that would let me change ...

10 answers | 15 mins ago by Hsiu on Stack Overflow stackoverflow.com
2 answers

How to insert a line to html file after match using SED

How can i insert a line to an html file after a match, for example I am trying to insert this line : <a href="www.google.com">HERE</a> after a match like this : <p ...

2 answers | 15 mins ago by Abugado on Stack Overflow stackoverflow.com
1 answer

AIX sh, how to grep an expression with double quotes in a string?

I need to find in a log, all lines containing a server name. So I do in my script : grep $x ./input_log_files.csv >> test.txt where x contain the server name. The problem is that this ...

2 answers

creating a folder one level above the present location

I need to create a simple shell script to create a folder one level above the present location of the script. I was successful in getting the present location with: #!/bin/sh pwd However, I got ...

2 answers | 19 mins ago by pythonbeginer on Stack Overflow stackoverflow.com
0 answers

Can't replace text with spaces with fart

I try to replace in the file 'file' text c:\Program Files\gnuplot\bin\ by some similar text, likely c:\Program Data\bin\ by using FART and batch scripting through the command line. I use ...

3 answers

find: missing argument to `-exec', even after escaping semicolon

for i in `ls`; do find /path/to/different/project -name $i -type f -exec sed -i "s/var Handlebars/d" {}; done; I have tried seemingly everything, including escaping the ; after the {}, escaping both ...

3 answers | 24 mins ago by papiro on Stack Overflow stackoverflow.com
1 answer

Bash : Can Here Strings <<< work with multiple variables as input?

I am trying to initialize an array with multiple variables as below . StringOne="This is a Test String" StringTwo="This is a New String" read -r -a Values <<< "$StringOne" "$StringTwo" But ...

1 answers | 25 mins ago by Mathews Jose on Stack Overflow stackoverflow.com
0 answers

How to identify if Webpsphere JVM is in “running” state through shell script

I have a WebSphere JVM that usually took time(not any fix time but between 15-30 mins) to come up, some time 30+ mins. I am scheduling the restart through shell script using cron. The problem is ...

0 answers

unknown error in Git visual studio 2013

I want to use the git in visual studio but every time I go to team explorer/changes I get the following error: An error occurred. Detailed message: An error was raised by libgit2. Category = Unknown ...

0 answers

Sanitized input for subprocess with shell=True in python

I have python script, which has code. ... ... p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) ...

0 answers

How to set default permissions for every new Github repository within an organization?

We have quite a few repositories in our organization, and we are constantly adding more. We also have a few different teams - Superusers, Developers, Contractors, etc. I want every newly created ...

1 answer

How is my local git branch “ahead by 28” when it's actually only ahead by 1?

I merged origin/master into a feature branch and suddenly git is telling me my local feature branch is ahead by 28 commits. I don't see why; it seems to be just 1 ahead: >git branch -v ... * ...

2 answers

ffmpeg produces bad output when called from execve in c++

im writing a c++ program that involves ffmpeg being called from a c++ program. a couple of days ago i got it working using std::system std::system("ffmpeg -threads auto -y -r 1.74659 -i ...

2 answers | 38 mins ago by Arheisel on Stack Overflow stackoverflow.com
1 answer

Read fixed width file into an array

I am hoping to read the following input into an array via a function using awk FIELDWIDTHS="9 1 2". I would like the index to be $1. I am new to Linux and awk and have very little scripting ...

1 answers | 38 mins ago by Dan K on Stack Overflow stackoverflow.com
1 answer

Pre-compile site in continuous deployment using GIT in Azure App Service

Is there any way to pre-compile whole website during continuous deployment in Azure App Service (former Azure Websites)? There are no related settings for publishing in Deployment source ...

2 answers

Is there a way to measure how much a shell command used memory?

Is there a way to measure how much an executed terminal command/operation used memory, like the built-in command time for measuring execution time. I'd like to compare commands with different ...

1 answer

ffmpeg memery leak with av_read_frame

I use av_read_frame in two ways below: 1. for(;;){ if (av_read_frame(pFormatCtx, packet) >= 0){ av_packet_unref(packet); } } 2. for(;;){ packet = ...

1 answers | 48 mins ago by Link on Stack Overflow stackoverflow.com
1 answer

make error using GNU/GCC quad precision library

When using Cygwin and GCC under Win 7 and the quad precision library: gcc -c lquad.c ... this runs OK, but gcc lquad.o ... produces the following error: ...

1 answer

git difftool --dir-diff is not creating temp files for Beyond Compare 3 to use

I'm trying to use git's new (as of git 1.7.11) directory diff command with Beyond Compare 3 as the difftool, but the temporary files are not being created. For example: git difftool --dir-diff ...

1 answers | 51 mins ago by jmohr on Stack Overflow stackoverflow.com
2 answers

Trouble installing private github repository using pip

To preface, I have already seen this question Is it possible to use pip to install a package from a private github repository? I am trying to install a package from a private repository that I have ...

2 answers | 56 mins ago by Robeezy on Stack Overflow stackoverflow.com
13 answers

How to convert DOS/Windows newline (CRLF) to Unix newline (\n) in bash script?

How can I programmatically (i.e., not using e.g. vi) convert DOS/Windows newlines to Unix? The dos2unix and unix2dos commands are not available on certain systems, how can I emulate these with ...

13 answers | 1 hour ago by Koran Molovik on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3