Tag: line

55 votes
4 answers
2.7K views
Go to first line in a file in vim?

How do I go to first line in a file in vim ?

avatar
Brianne
0 1 0 9
asked 07 September, 2021
63 votes
7 answers
2.7K views
Run R script from command line

I have a file, called a.r, it has a chmod of 755, sayHello <- function(){ print('hello') } s

avatar
Keith
0 1 0 9
asked 07 September, 2021
51 votes
16 answers
2.3K views
Can you get the number of lines of code from a GitHub repository?

In a GitHub repository you can see “language statistics”, which displays the percentage of the project tha

avatar
Stacia
0 1 0 9
asked 07 September, 2021
57 votes
13 answers
1.3K views
Error "The input device is not a TTY"

I am running the following command from my Jenkinsfile. However, I get the error "The input device is not a TT

avatar
Lynette
0 1 0 9
asked 07 September, 2021
56 votes
18 answers
1.3K views
How do I edit a file after I shell to a Docker container?

I successfully shelled to a Docker container using: docker exec -i -t 69f1711a205e bash Now I need to edit

avatar
Corey
0 1 0 9
asked 07 September, 2021
54 votes
15 answers
1.7K views
How can I get a list of user accounts using the command line in MySQL?

I'm using the MySQL command-line utility and can navigate through a database. Now I need to see a list of

avatar
Patsy
0 1 0 9
asked 07 September, 2021
60 votes
29 answers
1.5K views
Argument list too long error for rm, cp, mv commands

I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars

avatar
Frederick
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
1.7K views
How to force cp to overwrite without confirmation

I'm trying to use the cp command and force an overwrite. I have tried cp -rf /foo/* /bar, but I am still

avatar
Dwain
0 1 0 9
asked 07 September, 2021
66 votes
21 answers
2.8K views
git replacing LF with CRLF

Running git on a Windows XP machine, using bash. I exported my project from SVN, and then cloned a bare reposi

avatar
Daniel
0 1 0 9
asked 07 September, 2021
56 votes
27 answers
498 views
How to count lines in a document?

I have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.0

avatar
Luis
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
729 views
How to change the output color of echo in Linux

I am trying to print a text in the terminal using echo command. I want to print the text in a red color. How

avatar
Dusty
0 1 0 9
asked 07 September, 2021
65 votes
2 answers
1.2K views
cocktail party algorithm SVD implementation ... in one line of code?

In a slide within the introductory lecture on machine learning by Stanford's Andrew Ng at Coursera, he gi

avatar
Louetta
0 1 0 9
asked 07 September, 2021
57 votes
10 answers
1.5K views
Matlab: Running an m-file from command-line

Suppose that; I have an m-file at location:C:\M1\M2\M3\mfile.m And exe file of the matlab is at this locatio

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
63 votes
1 answers
426 views
Azure pipeline custom task - info logs are considered errors

I have developed an azure custom pipeline task (Build and Release) that executes nightwatch.js test cases. nig

avatar
Deedee
0 1 0 9
asked 07 September, 2021
62 votes
22 answers
743 views
Use grep --exclude/--include syntax to not grep through certain files

I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I

avatar
Venice
0 1 0 9
asked 07 September, 2021
54 votes
16 answers
788 views
Count number of lines in a git repository

How would I count the total number of lines present in all the files in a git repository? git ls-files gives

avatar
Joseph
0 1 0 9
asked 07 September, 2021
61 votes
14 answers
774 views
How to reload .bash_profile from the command line?

How can I reload .bash_profile from the command line? I can get the shell to recognize changes to .bas

avatar
Bryan
0 1 0 9
asked 07 September, 2021
59 votes
14 answers
1.1K views
How do I set a variable to the output of a command in Bash?

I have a pretty simple script that is something like the following: #!/bin/bash VAR1="$1" MOREF='sudo r

avatar
Elicia
0 1 0 9
asked 07 September, 2021
52 votes
12 answers
1.3K views
How do I copy a folder from remote to local using scp?

How do I copy a folder from remote to local host using scp? I use ssh to log in my server. Then, I would like

avatar
Scot
0 1 0 9
asked 07 September, 2021
49 votes
16 answers
900 views
frequent issues arising in android view, Error parsing XML: unbound prefix

I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0"

avatar
Eddie
0 1 0 9
asked 07 September, 2021