Questions tagged [nano]

GNU nano is an open source, curses-based text editor for Unix systems. It is a clone of [tag:pico], the proprietary Pine e-mail client editor.

Nano is a simple, small, lightweight text editor for written in . It was created in 1999 under the name TIP ("this isn't pico"). It was renamed to avoid conflit with the tip command in 2000 and officially joined the GNU project in 2001.

Nowadays, nano supports interaction through mouse, syntax highlight, -based search, customization of key bindings and (experimental) undo/redo support. More about it can be read in its homepage.

295 questions
0
votes
2 answers

How to filter out the part before the equal sign in a shell variable with regex

I have been trying to find a working regex to filter out only variables in a shell script but not been able to. I am not talking about the the actual variable but the string that creates it. As an example I have been trying to egrep the variables…
AlMehdi
  • 557
  • 9
  • 20
0
votes
1 answer

Configuring git auto completion in .bash_profile

I'm having trouble installing git auto completion into my bash profile. I've attached a version of the bash script. Does anyone know why my the auto completion in git isn't working when I save and exit nano? Thanks!
user1552159
  • 205
  • 1
  • 4
  • 12
0
votes
3 answers

How to open Nano and get a string from it in C++?

I am creating a simple logging program. When a user enters log some_file into the console, the program currently simply receives some basic input from cin, and records it into some_file. However, instead of implementing my own editor with cin, I'd…
corazza
  • 31,222
  • 37
  • 115
  • 186
0
votes
3 answers

Copyright and pound sterling symbol in Bash script

What is the proper way of inserting a copyright symbol © and a pound sterling symbol £ into a bash script. I am using nano as my editor and am running Debian Squeeze. If I copy and paste the symbol from windows, it works but it seems to paste hidden…
general exception
  • 4,202
  • 9
  • 54
  • 82
-1
votes
0 answers

Random sound on button push with arduino and dfplayer

I've build the device that is playing the single random mp3 file from the SD card on button push, using Arduino and DFPlayer mini. The device is working almost fine. The problem is that when I push the button and do not let go instantly, the button…
-1
votes
1 answer

Creating a script in BASH using AWK GREP and PIPES, to analyze a file and find the following Time, AM/PM , First/last ETC

I need to create a script to look at each day and time of the losses that occured. Time a.m./p.m. First name of roulette dealer Last name of roulette dealer For example, if a loss occurred on March 10 at 2 p.m., you would write one script to find…
-1
votes
1 answer

auto-indent in nano not working while writing java files

I put set auto-indent in ~/.nanorc but auto-indent still not work. typing nano lol.java: public class lol { public static void main(String[] args) { } } I'm on macOS.
efgvdfv
  • 11
  • 1
-1
votes
1 answer

How to rebuild a nano package so that after it becomes possible to launch the nano editor from any directory, by entering the command newnano?

While I've been doing my Linux project, I've faced a problem with rebuilding the nano package so that after it is installed by the package manager, it becomes possible to launch the nano editor from any directory, by entering the command newnano.…
-1
votes
2 answers

I want to show a number in php which has 30 digits after decimal without rounding it up for nano currency, anyone have any Idea?

For example, if I have a number $x = 340282366920938430000000000000000000000; I want output as 340282366.92093 and not 340282366.92094 Also for a number like $y = 23000000000; I want the output to be 0.000000000000000000023
-1
votes
1 answer

Terminal nano won't quit

Hi I am trying to quit nano, I don't need to save any changes. I have tried ctrl x and press n for not saving changes but it won't quit. It just switches between saying new file and [ Switched to JAVA_HOME= ] see screen shot
-1
votes
3 answers

How to make an alias last forever?

I want to make an alias python="python3". I do this by using nano ~/.bash_profile and then typing: alias python="python3" , and save. Then I write: source ~/.bash_profile to overwrite changes. But this alias only lasts for the terminal session that…
-1
votes
2 answers

My arduino nano analogRead always return 1023

The CDS sensor module connected to the Arduino Nano returns only a value of 1023. my code hear int Cds = A0; //int Led = 13; int value; void setup() {`enter code here` Serial.begin(9600); pinMode(Cds,INPUT); //pinMode(Led,OUTPUT); } …
jeongwoon
  • 1
  • 1
-1
votes
1 answer

How can I solve this error in nano (couchdb) Express.js

(node:7636) UnhandledPromiseRejectionWarning: Error: Can't set headers after they are sent. at validateHeader (_http_outgoing.js:491:11) at ServerResponse.setHeader (_http_outgoing.js:498:3) at ServerResponse.header …
sikaili99
  • 532
  • 6
  • 14
-1
votes
1 answer

Blender, splitting an object into layers

I have an object that I used blenders "pixelate" (advanced) object function, this created what looked like a bunch (1000's) of duplications of a single cube. having exported and then re-imported this resulted in a single object consisting of some…
Chris Camacho
  • 1,164
  • 1
  • 9
  • 31
-1
votes
2 answers

indentation Error python 2.7

Hello I am having an indentation error on python 2.7 My program looks like this: Imports: import sys, os import subprocess from threading import Thread from re import split Actual Code: def GetProcesses(Clean=True): # if Clean == True: …
1 2 3
19
20