Stack Overflow
   21 tags on

1 answer

Bash: Format environment variables in string

How does one format a string leveraging an environment variable within at the command line? For example, I want to curl and pass some variable, i.e.: curl -X POST --data-urlencode 'payload={"text": ...

3 answers

Using FFMPEG to join two MTS files together

I have two MTS video files, each one 2 minutes long. I need to be able to join the files together and convert the format to MPEG4. I have a suitable command line for converting MTS to MP4 but don't ...

7 answers

Linux : How to delete Multiple Files at once?

I have this list of files inside Linux servr . abc.log.2012-03-14 abc.log.2012-03-27 abc.log.2012-03-28 abc.log.2012-03-29 abc.log.2012-03-30 abc.log.2012-04-02 abc.log.2012-04-04 abc.log.2012-04-05 ...

7 answers | 35 mins ago by user1253847 on Stack Overflow stackoverflow.com
0 answers

Update web content displayed in terminal without reloading all previous data

I am trying to figure out how to refresh the content of a webpage without reloading all of the data currently displayed. I realize from my research that the Id is supposed to be restricted to one ...

1 answer

AIX Unix find command to get first element then move on to the next

My list.txt file has a few hundred entries pointing to filenames laying on the /tmp partition. I'm collecting files that start with "a" such as apples.txt, andromeda.txt, etc to copy them into a ...

1 answers | 45 mins ago by user2585000 on Stack Overflow stackoverflow.com
2 answers

Git marks file as deleted but also as untracked

In a feature branch of a repository I get mixed messages from git: λ git status On branch feature/**** Your branch is up-to-date with 'origin/feature/****'. Changes not staged for commit: (use "git ...

2 answers | 46 mins ago by micnil on Stack Overflow stackoverflow.com
0 answers

what is the difference between pattern matching operators?

i have some questions about pattern matching operators. what's difference between these examples $ VAR=/usr/bin/iecset $ echo ${VAR#*/} usr/bin/iecset and $ VAR=/usr/bin/iecset $ echo ...

1 answer

Get exact Tag name of closest git Tag

I'd like to find the name of the tag closest to the commit I specify. git describe x works great. But this returns an extended formatting that I'd like to get rid of. I want the actual tag name. eg. ...

1 answers | 51 mins ago by Ben L on Stack Overflow stackoverflow.com
0 answers

Match pattern in line using grep

I need to grep lines from a file with comma separated values, and direct the output to another file. Thus, if the second value starts with 'U' and the last value is 'Success', then this line matches ...

1 answer

Git push fails with public key when using SSH and specifying credentials

I have a weird issue here. Our Maven release plugin fails because it can't push a tag to Git. The following fails: git push ssh://PU0S:xL8q@git-eim.fg.com/u0r0-SS/workspace-proxy.git ...

1 answers | 1 hour ago by timmy on Stack Overflow stackoverflow.com
0 answers

Gitlab isssue with git push

Having issues doing a git push from both git cli and gitlab http interface. Can't seem to figure out where the issue is. Had gitlab server behind nginx proxy which I thought may have been causing ...

0 answers

sed: Replacing a range of text with contents of a file

There are many examples here and elsewhere on the interwebs for using sed's 'r' to replace a pattern, but it does not seem to work on a range, but maybe I'm just not holding it right. The following ...

0 answers

Parsing and storing the values of a csv file using shell script outputs :::: instead of actual characters

I am trying to read a csv file using shell script,using the following command. cat file.csv | while read -r a b c d e f; do echo "$a:$b:$c:$d:$e:$f"; done When i run this command the first column ...

1 answer

How can i check the exit code of individual process running in parallel executed by GNU Parallel

I am having an array in linux shell script. Array contains list of commands in bash shell script. For instance : args =( "ls","mv /abc/file1 /xyz/file2","hive -e 'select * from something'" ) Now ...

0 answers

Error running a Shiny App from URL on GitHub

I am trying to run a Shiny App from a Github repo and I get errors, whether with runUrl() or runGitHub(). The files of the Shiny App+the data were zipped using Winrar and stored with Git LFS. The ...

3 answers

How to create a new gitlab repo from my existing local git repo, using CLI?

I have many local git repos on my OSX. Using command line I want to make new gitlab repos on https://gitlab.ccompanyname.com, form existing local repos. Is it possible to do that?

3 answers | 1 hour ago by Jitendra Vyas on Stack Overflow stackoverflow.com
2 answers

Add lines to a document if they do not already exist within the document

I am trying to say, if document does not exist, then create document. Next read each line of the document and if none of the lines match the $site/$name variables, then add the $site/$name variable ...

2 answers | 1 hour ago by user556068 on Stack Overflow stackoverflow.com
0 answers

How to sort a range of lines by length in vim with gawk?

Short question i'm using this regex http://stackoverflow.com/a/11531819/4779063 to sort lines by lenght in vim but i modified it a little bit to make it work with windows and gawk so i end up having ...

1 answer

How to get previous Thursday, inclusive?

Suppose that today is Thursday, June 30, 2016. Then date +%Y%m%d results in 20160630, date -d'last-thursday' +%Y%m%d is 20160623, and date -d'next-thursday' +%Y%m%d is 20160707. However, date -d'...

1 answer

How to stop Git branch in IntelliJ?

I was doing some experiments on branch. Finally I decided that experiments were ok. And now I wish to incorporate all changes into main branch. How to do this with IntelliJ? In other words, how to ...

1 answers | 1 hour ago by Dims on Stack Overflow stackoverflow.com
1 answer

How to get CPU idle on AIX ( awk )

I am using a 'awk' to get the CPU idle(vmstat), and it works well on Linux. Strangely, below command doesn't show anything on AIX. vmstat 1 1 | awk '{for(i=NF;i>0;i--) if($i=="id") {x=i;break} } ...

1 answers | 1 hour ago by Sigularity on Stack Overflow stackoverflow.com
0 answers

How to display custom video controls even in fullscreen

How can I display custom video controls when the in fullscreen mode in modern browsers? They disappear as soon as I go fullscreen. I'd like them to be available, and then I'll write some JavaScript ...

2 answers

deleting 10 days old folder in linux

#!/bin/bash now=$(date +"%d-%m-%Y") year=$(date +"%Y") echo $year find /var/backup/backup-scripts -name '*$year*' -ctime +10 -exec rm {} \; ~ ~ This script is running with no errors but not ...

2 answers | 2 hours ago by LifeSaver on Stack Overflow stackoverflow.com
1 answer

Bash Eval invalid command

I have the following scenario in a .sh file hello="java -cp \"/home/user/libs/*\" org.user.class parameter" echo "$hello" eval $($hello) If I try to run the .sh file I get the following exception ...

1 answers | 2 hours ago by nucandrei on Stack Overflow stackoverflow.com
1 answer

search a pattern from a unix directory

I want to find whether any script in one unix directory is using one particular table as "select *" or not. Means I want to find "select * from tablename". Now after select there can be any number of ...

1 answers | 2 hours ago by Koushik Chandra on Stack Overflow stackoverflow.com
2 answers

Why do I have to “git push --set-upstream origin <branch>”?

I created a local branch for testing Solaris and Sun Studio. I then pushed the branch upstream. After committing a change and attempting to push the changes: $ git commit blake2.cpp -m "Add ...

2 answers | 2 hours ago by jww on Stack Overflow stackoverflow.com
0 answers

gitlab empty response from server while clonning repository

I just installed gitlab server and it is running with default configuration, I created a public visibility project called test and I went to another machine on the same network and tried to clone it ...

1 answer

How do I work on the same file in GIT but on 2 different branches where I can switch easily between the 2

Is there a way to work on the same file but on different features/branches in GIT? I'm sure there is a way but what is the easiest? I don't want to stash my changes as thats cumbersome. With SVN I ...

1 answers | 2 hours ago by KingKongFrog on Stack Overflow stackoverflow.com
1 answer

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes

I have issues with an python script. When I run it I has this error: ./ics2owncloud.py File "./ics2owncloud.py", line 46 if r.status_code == 500 and 'Sabre\VObject\Recur\NoInstancesException' ...

1 answers | 2 hours ago by Lars on Stack Overflow stackoverflow.com
0 answers

Useless use of private variable in void context at {{path to perl file}}

I am trying to make a perl script that takes a remote hosts IP address when they visit a certain website. However I can't seem to get past this apache error: Useless use of private variable in void ...

15 30 50 per page
1 2 3