Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
1 answers
387 views
Why does apt list show arm64 packages on my amd64 machine?
I would like to get an explanation as to why `apt list` command shows two `arm64` packages on my `amd64` machine/system - Linux Mint 22 (Ubuntu Noble based). And once explained, let's discuss if I can do something about it. *** Please note, that I remove the following message, along with possibly ot...
I would like to get an explanation as to why apt list command shows two arm64 packages on my amd64 machine/system - Linux Mint 22 (Ubuntu Noble based). And once explained, let's discuss if I can do something about it. *** Please note, that I remove the following message, along with possibly other unimportant strings from the below listings for shortness. > WARNING: apt does not have a stable CLI interface. Use with caution in scripts. *** Running these commands as a user or root, or changing the way I specify grep filter, does not have any effect on the result, which is always the same = two arm64 Sublime packages show up on my amd64 machine. Before I start, let me mention the manual pages first: 1) GNU grep ; 2) POSIX grep .
# apt list | grep -v 'amd64\|all\|i386'  # I ran this as root

sublime-merge/apt/stable 2102 arm64
sublime-text/apt/stable 4189 arm64
$ apt list | grep 'arm64$'  # I ran this as an ordinary user

sublime-merge/apt/stable 2102 arm64
sublime-text/apt/stable 4189 arm64
Now, let's get some basic info about these packages:
$ apt list sublime-text sublime-merge

sublime-merge/wilma,apt/stable 2102 amd64
sublime-merge/apt/stable 2102 arm64
sublime-text/apt/stable,now 4189 amd64 [installed]
sublime-text/apt/stable 4189 arm64
^^ Why the heck are those two arm64 architecture packages showing up? It's been a long time since I have edited most of my /etc/apt/sources.list.d/*.{list,sources} to explicitly contain the architecture, and I thought it would enforce it, no?
$ apt-cache policy sublime-text sublime-merge

sublime-text:
  Installed: 4189
  Candidate: 4189
  Version table:
 *** 4189 500
        500 https://download.sublimetext.com  apt/stable/ Packages
        100 /var/lib/dpkg/status
     4186 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     4180 500
        500 http://packages.linuxmint.com  wilma/import amd64 Packages
        500 https://download.sublimetext.com  apt/stable/ Packages
...

sublime-merge:
  Installed: (none)
  Candidate: 2102
  Version table:
     2102 500
        500 http://packages.linuxmint.com  wilma/import amd64 Packages
        500 https://download.sublimetext.com  apt/stable/ Packages
     2096 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     2091 500
        500 https://download.sublimetext.com  apt/stable/ Packages
...
I have explicitly set, where applicable, the amd64 architecture like so:
deb [arch=amd64 ...
and the sublime-text sources list file is not an exception from this rule of mine:
$ cat /etc/apt/sources.list.d/sublime-text.list

deb [arch=amd64 signed-by=/usr/share/keyrings/sublimehq-archive.gpg] https://download.sublimetext.com/  apt/stable/
So, now I am not sure what this arch=amd64 clause in there is actually doing, if not preventing loading/downloading only this particular architecture from such repository? Would anyone care to clarify, please? And if you know how to prevent this from happening, I would appreciate it. Thank you. *** For completness, let me specify my primary and other architectures I have added to my OS:
$ dpkg --print-architecture
amd64

$ dpkg --print-foreign-architectures
i386
Cheers. *** This will be a comments section: - 1st request came from Stephen Kitt , thank you.
$ apt policy sublime-{text,merge}:arm64

sublime-text:arm64:
  Installed: (none)
  Candidate: 4189
  Version table:
     4189 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     4186 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     4180 500
        500 https://download.sublimetext.com  apt/stable/ Packages
...

sublime-merge:arm64:
  Installed: (none)
  Candidate: 2102
  Version table:
     2102 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     2096 500
        500 https://download.sublimetext.com  apt/stable/ Packages
     2091 500
        500 https://download.sublimetext.com  apt/stable/ Packages
...
Vlastimil Burián (30505 rep)
Dec 20, 2024, 07:13 AM • Last activity: Dec 20, 2024, 09:14 AM
3 votes
3 answers
504 views
Sublime text: How to paste image into a markdown file?
In VS Code, we have a useful tool that can paste image on clipboard to our markdown file. https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image In the paste, an image file is created, and a markdown link to the image is added into the file. I have been looking for a similar t...
In VS Code, we have a useful tool that can paste image on clipboard to our markdown file. https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image In the paste, an image file is created, and a markdown link to the image is added into the file. I have been looking for a similar tool in SublimeText but the closest is MarkdownEditing, which only creates an empty markdown link placeholder without creating the image file for me. Is there a package that can create an image file from my clipboard? I tried using imagepaste (https://packagecontrol.io/packages/ImagePaste) its not actively developed anymore (https://github.com/robinchenyu/imagepaste) enter image description here i tried it but its not working enter image description here
Santhosh (409 rep)
Jan 31, 2024, 12:39 AM • Last activity: May 4, 2024, 08:35 AM
2 votes
3 answers
6322 views
Installing Sublime Text with apt fails due to missing public key
I am using the instructions linked below to setup apt to install sublime-text. I am intentionally applying the method for connecting to third party repositories described on the Debian and Stackexchange pages, using Sublime as an example of a third party repo. https://www.sublimetext.com/docs/linux_...
I am using the instructions linked below to setup apt to install sublime-text. I am intentionally applying the method for connecting to third party repositories described on the Debian and Stackexchange pages, using Sublime as an example of a third party repo. https://www.sublimetext.com/docs/linux_repositories.html https://wiki.debian.org/DebianRepository/UseThirdParty https://unix.stackexchange.com/questions/332672/how-to-add-a-third-party-repo-and-key-in-debian/582853#582853 However, when running apt update I am getting the following error regarding the encryption key: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F57D4F59BD3DF454 This is what I am doing: Download key, convert key from ascii to binary, and move key to shared location: curl https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor > ~/Downloads/sublime-keyring.gpg sudo mkdir -vp /usr/local/share/keyrings/ sudo mv -v ~/Downloads/sublime-keyring.gpg /usr/local/share/keyrings/sublime-keyring.gpg sudo chown -v root:root /usr/local/share/keyrings/sublime-keyring.gpg sudo chmod -v 0640 /usr/local/share/keyrings/sublime-keyring.gpg Create source list: printf "deb [signed-by=/usr/local/share/keyrings/sublime-keyring.gpg] https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list Set pinning rules to restrict repo usage: printf "%s\n" "Package: *" "Pin: origin download.sublimetext.com" "Pin-Priority: 1" "" "Package: sublime-text" "Pin: origin download.sublimetext.com" "Pin-Priority: 500" | sudo tee /etc/apt/preferences.d/sublime-text.pref Then I run sudo apt update which creates the following output regarding sublime text repo: Get:1 https://download.sublimetext.com apt/stable/ InRelease [2.536 B] Err:1 https://download.sublimetext.com apt/stable/ InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F57D4F59BD3DF454 W: GPG error: https://download.sublimetext.com apt/stable/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F57D4F59BD3DF454 E: The repository 'https://download.sublimetext.com apt/stable/ InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. When I run with debug for gpg, sudo apt -o Debug::Acquire::gpgv=True update, I get a few more details: Get:1 https://download.sublimetext.com apt/stable/ InRelease [2.536 B] 0% [Waiting for headers] [Waiting for headers]inside VerifyGetSigners Preparing to exec: /usr/bin/apt-key --quiet --readonly --keyring /usr/local/share/keyrings/sublime-keyring.gpg verify --status-fd 3 /tmp/apt.sig.zwA50y /tmp/apt.data.zbzsmw Read: [GNUPG:] NEWSIG Read: [GNUPG:] ERRSIG F57D4F59BD3DF454 1 8 01 1627009220 9 - Got ERRSIG F57D4F59BD3DF454 ! Read: [GNUPG:] NO_PUBKEY F57D4F59BD3DF454 Got NO_PUBKEY F57D4F59BD3DF454 ! gpgv exited with status 2 Summary: Good: Valid: Bad: Worthless: SoonWorthless: NoPubKey: NO_PUBKEY F57D4F59BD3DF454 Signed-By: NODATA: no Err:1 https://download.sublimetext.com apt/stable/ InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F57D4F59BD3DF454 W: GPG error: https://download.sublimetext.com apt/stable/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F57D4F59BD3DF454 E: The repository 'https://download.sublimetext.com apt/stable/ InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. I read this to mean that apt is correctly passing on the location of the key I have downloaded. This could mean that gpg can not read the contents of the key. Or maybe the key was somehow mangled in the dearmoring process and no longer has the contents expected. This is pure guessing on my part. When I inspect the dearmored key, sudo gpg --show-keys /usr/local/share/keyrings/sublime-keyring.gpg, I get the following, which seems plausibly correct: pub rsa4096 2017-05-08 [SCEA] 1EDDE2CDFC025D17F6DA9EC0ADAE6AD28A8F901A uid Sublime HQ Pty Ltd sub rsa4096 2017-05-08 [S] The key is readable, although it does not mention F57D4F59BD3DF454. So what went wrong? How can I get this to function correctly?
tompi (292 rep)
Aug 6, 2021, 09:43 PM • Last activity: Jun 10, 2023, 08:22 AM
0 votes
2 answers
470 views
How to run sublime text in Musl LibC (Void Linux)
How i can run sublime text in Void Linux with musl LibC (not glibc) without using chroot or flatpak?
How i can run sublime text in Void Linux with musl LibC (not glibc) without using chroot or flatpak?
hsnfirdaus (3 rep)
Apr 29, 2022, 01:28 PM • Last activity: Jan 21, 2023, 05:31 PM
0 votes
2 answers
674 views
WSL open Window on Windows host
I made a small bash-script. it works fine so far on Windows WSL and Linux. Now i would like a to have a graphical pop-up window to let the user choose from a list of settings. I learned you can do that with VBS, which i know none about. Is it possible to return the choice to my bash script? How does...
I made a small bash-script. it works fine so far on Windows WSL and Linux. Now i would like a to have a graphical pop-up window to let the user choose from a list of settings. I learned you can do that with VBS, which i know none about. Is it possible to return the choice to my bash script? How does the .vbs have to look like? Or maybe there is a simpler way to do this? My Script opens some files and I would like to let the user choose their editor for this. for example sublime and vim on linux. or notepad++ and sublime on windows. I would like to avoid having the windows user have to install all the x11-libraries, thats why i dont want to do it with zenity, which i will use for linux. And the first thing i found about it was a .vbs script on windows.
user275140
Mar 7, 2018, 03:10 PM • Last activity: May 31, 2021, 12:56 PM
2 votes
0 answers
700 views
Nano c.nanorc format
I like portability between systems and I was trying to make my `nano` editor look as much as possible like Sublime Text (on Linux Mint). I want to color function names too. So far I managed to make it as shown in the picture: [![Sublime Text and nano side-to-side][1]][1] The code I used is a bit of...
I like portability between systems and I was trying to make my nano editor look as much as possible like Sublime Text (on Linux Mint). I want to color function names too. So far I managed to make it as shown in the picture: Sublime Text and nano side-to-side The code I used is a bit of a cheat. I color void itself and the space after until the next space:
color brightyellow  start="void " end="[ ]"
color cyan "void"
The reason I color it twice is that it makes void bright yellow too, plus it works only if I write my code like:
void fu (void);
with a space between fu and (. However, if I write the code as:
void fu(void);
it breaks. My question is how do I write start="void " end="(" in c.nanorc, in such a way to start from void to ( but ignore the words themselves?
Spiritus (21 rep)
May 13, 2021, 11:34 AM • Last activity: May 13, 2021, 12:45 PM
1 votes
1 answers
775 views
Linux makes tabs when copying and pasting code
I use Linux Ubuntu for competitive programming, it's pretty good, but when I copy and paste my c++ code to submit it, it automatically adds tabs to my submission code at the beginning of some lines. Does exist some way to fix it? Because on MS-windows it's not problem with this. Thank you very much.
I use Linux Ubuntu for competitive programming, it's pretty good, but when I copy and paste my c++ code to submit it, it automatically adds tabs to my submission code at the beginning of some lines. Does exist some way to fix it? Because on MS-windows it's not problem with this. Thank you very much.
Jozef Remiš (13 rep)
Feb 10, 2021, 04:22 PM • Last activity: Feb 10, 2021, 05:22 PM
1 votes
1 answers
762 views
Manjaro Installation Key Issues
Just started using Manjaro and pacman. I attempted an install of sublime-text using the [pacman install instructions][1] and seem to have added a dodgy key. When I try an perform another command I keep getting something like: Preparing... Synchronizing package databases... Refreshing core.db... Refr...
Just started using Manjaro and pacman. I attempted an install of sublime-text using the pacman install instructions and seem to have added a dodgy key. When I try an perform another command I keep getting something like: Preparing... Synchronizing package databases... Refreshing core.db... Refreshing extra.db... Refreshing multilib.db... Refreshing sublime-text.db... Downloading subli (sublime)... Failed to prepare transaction: invalid or corrupted database Error: sublime-text.db.sig: sublime-text: signature from "Sublime HQ Pty Ltd " is unknown trust invalid or corrupted database (PGP signature) To be honest at this stage I'm not even that bothered about being able to use sublime-text, just trying to get to a place where I can use the package manager. Any ideas? How would I go about removing this key?
Samuel Barnes (121 rep)
Jun 15, 2020, 11:20 AM • Last activity: Jul 1, 2020, 01:33 PM
0 votes
0 answers
1683 views
Recover overwritten CSV files with multiple worksheets
- I have a CSV file with one worksheet. - After editing with Libre Office, I saved it and opened it with Libre Office again. - I created a new sheet in the Libre Office. - I saved it and opened it with Sublime Text. - I couldn't see the data from both sheets. Still, I edited in Sublime Text and save...
- I have a CSV file with one worksheet. - After editing with Libre Office, I saved it and opened it with Libre Office again. - I created a new sheet in the Libre Office. - I saved it and opened it with Sublime Text. - I couldn't see the data from both sheets. Still, I edited in Sublime Text and saved the .csv file. - I reopened the workbook with Libre Office again. All my previous worksheets are lost. Only the last worksheet is remaining. I have been working on the other sheets for almost the past 10 days. All the work seems like it's gone. Ultimate frustration :( Is there a way to restore the lost data?
Sai Nikhil (101 rep)
May 3, 2020, 01:02 AM
1 votes
1 answers
67 views
Use Fix Command (fc) with sublime text
I want to make an alias for fixing my previous commands easily. Using `alias fix="fc -e nano"` works, but I'd love to use sublime text with this. However, using `fc -e subl` only brings a blank editor. I understand that nano only opens up `/tmp/bash-fc.PUKKW8`. I can force sublime text to open this...
I want to make an alias for fixing my previous commands easily. Using alias fix="fc -e nano" works, but I'd love to use sublime text with this. However, using fc -e subl only brings a blank editor. I understand that nano only opens up /tmp/bash-fc.PUKKW8. I can force sublime text to open this file manually, but can't figure out a way to open it through fc. Is there a way to do this?
a3y3 (85 rep)
Mar 11, 2020, 05:33 PM • Last activity: Mar 11, 2020, 05:56 PM
0 votes
1 answers
110 views
Configuring Sublime symlink
GOAL === Invoke sublime from the OSX BASH command line with the same Ubuntu command: `subl filename.txt` shall open filename.txt in Sublime. DETAILS === My instance of Sublime: /Applications/Sublime\ Text.app//Contents/SharedSupport/bin/subl Per [instructions \ tutorial][1] a symbolic link toThe sym...
GOAL === Invoke sublime from the OSX BASH command line with the same Ubuntu command: subl filename.txt shall open filename.txt in Sublime. DETAILS === My instance of Sublime: /Applications/Sublime\ Text.app//Contents/SharedSupport/bin/subl Per instructions \ tutorial a symbolic link toThe symlink /usr/local/bin/sublime is recommended. In order to meet the goal, the resulting symlink would be: ln -s /Applications/Sublime\ Text.app//Contents/SharedSupport/bin/subl /usr/local/bin/subl QUESTION === If /usr/local/bin/subl is used instead of /usr/local/bin/sublime, when would subl be problematic and why?
gatorback (1522 rep)
Dec 31, 2019, 03:37 AM • Last activity: Jan 1, 2020, 09:58 PM
-1 votes
1 answers
408 views
How to get just two items of a json like file
I'm trying to parse the `Sublime Text 3` session file: **Session.sublime_session**. It consist of what look like JSON formatted stuff. Using: ```bash cat Session.sublime_session | grep -A13 "\"file\":" ``` I can get easily get a list (repeated for each file) like this: ```json "file": "/F/myHW/check...
I'm trying to parse the Sublime Text 3 session file: **Session.sublime_session**. It consist of what look like JSON formatted stuff. Using:
cat Session.sublime_session | grep -A13 "\"file\":"
I can get easily get a list (repeated for each file) like this:
"file": "/F/myHW/check_usb_switch.sh",
	"semi_transient": false,
	"settings":
	{
			"buffer_size": 873,
			"regions":
			{
			},
			"selection":
			[
					[
							872,
							872
					]
--
How can I get a list like this:
/F/myHW/check_usb_switch.sh:872
...
(Are there other or more suitable tools for this? (E.g. **jq** etc?) --- Requested info:
# Start of file:
{
        "folder_history":
        [
        ],
        "last_version": 3176,
        "last_window_id": 9,
        "log_indexing": false,
        "settings":
        {
                "new_window_height": 912.0,
                "new_window_settings":
                {
                        "auto_complete":
                        {
                                "selected_items":
                                [
                                        [
                                                "input",
                                                "input_stream"
                                        ],
...
        },
        "windows":
        [
                {
                        "auto_complete":
                        {
                                "selected_items":
                                [
                                        [
                                                "file",
                                                "fileName"
...
                                        [
                                                "json",
                                                "json_response"
                                        ]
                                ]
                        },
                        "buffers":
                        [
                                {
                                        "file": "/F/xxxx.sh",
                                        "settings":
                                        {
                                                "buffer_size": 7040,
                                                "encoding": "UTF-8",
                                                "line_ending": "Unix"
                                        }
                                },
                                {
                                        "file": "/C/xxxx.txt",
--- Request-2:
{
                                                        "buffer": 1,
                                                        "file": "/C/Users/xxxx/Desktop/tmp/xxxx.txt",
                                                        "semi_transient": false,
                                                        "settings":
                                                        {
                                                                "buffer_size": 6529,
                                                                "regions":
                                                                {
                                                                },
                                                                "selection":
                                                                [
                                                                        [
                                                                                3569,
                                                                                3569
                                                                        ]
                                                                ],
                                                                "settings":
                                                                {
                                                                        "syntax": "Packages/Text/Plain text.tmLanguage",
                                                                        "word_wrap": false
                                                                },
                                                                "translation.x": 0.0,
                                                                "translation.y": 0.0,
                                                                "zoom_level": 1.0
                                                        },
                                                        "stack_index": 46,
                                                        "type": "text"
                                                },
not2qubit (1788 rep)
Oct 25, 2019, 10:21 PM • Last activity: Oct 25, 2019, 11:09 PM
7 votes
2 answers
21279 views
Method http has died unexpectedly! Problem installing sublime text 3.0
I am trying to install Sublime Text 3.0 on Ubuntu 16.0 (via crouton). I follow the instructions but I can't get `sudo apt-get update` to work. I get the following error: Method https has died unexpectedly! E: Sub-process https received a segmentation fault. If I remove the file which is created on `...
I am trying to install Sublime Text 3.0 on Ubuntu 16.0 (via crouton). I follow the instructions but I can't get sudo apt-get update to work. I get the following error: Method https has died unexpectedly! E: Sub-process https received a segmentation fault. If I remove the file which is created on etc/apt/sources.list.d/* the problem disappears and I can get sudo apt-get update to run with no problems. But I can't install the new version of ST! Any ideas? This issue is, I think, linked to the following: https://github.com/dnschneid/crouton/issues/2688
Ramiro (101 rep)
Sep 15, 2017, 02:37 AM • Last activity: Oct 23, 2019, 11:45 AM
0 votes
0 answers
63 views
Text files open with pdf reader instead of Sublime
I have Ubuntu 16.04. For some reason, the way text files were opened changed a few days ago. Before, all of them opened with Sublime. Now, they open with a pdf reader. Text files have "Python File (no console)" as Type. What's the problem? I can't really remember which was the extension of the text...
I have Ubuntu 16.04. For some reason, the way text files were opened changed a few days ago. Before, all of them opened with Sublime. Now, they open with a pdf reader. Text files have "Python File (no console)" as Type. What's the problem? I can't really remember which was the extension of the text files before, as I never paid attention to this. So can't tell if the change is due to the new file type or the application linked to such file type. I had a look at ~/.local/share/applications/mimeapps.list but it's almost empty. The file defaults.list has: [Default Applications] text/plain=sublime_text.desktop which suggests to me the problem is the Python File extension. I haven't tried to change the extension of the files, as I don't know that's the problem (nor how to do it). Any ideas?
luchonacho (863 rep)
Oct 3, 2019, 06:13 PM • Last activity: Oct 4, 2019, 03:48 PM
0 votes
1 answers
2534 views
How do I fix the "processing-java: command not found" error in the terminal
I have installed processing-3.5.3 IDE but really want to use the Sublime text editor as my goto for processing sketches. What I have done so far: 1. Install the "Processing" package in sublime. 2. Installed processing-java in /home/testuser/Downloads/Compressed/processing-3.5.3-linux64/processing-3....
I have installed processing-3.5.3 IDE but really want to use the Sublime text editor as my goto for processing sketches. What I have done so far: 1. Install the "Processing" package in sublime. 2. Installed processing-java in /home/testuser/Downloads/Compressed/processing-3.5.3-linux64/processing-3.5.3 I believe there must be an issue with my PATH to processing-java but no matter what I do I am unable to get to work. I also use the "processing-java --help" but it always returns "processing-java: command not found" in the terminal. OS: Pop!OS Thanks Kluivert
Kluivert Correia (13 rep)
Aug 30, 2019, 05:58 PM • Last activity: Aug 31, 2019, 09:22 AM
1 votes
1 answers
1581 views
Creating a launcher icon for sublime text 3 with the Exec=sublime_text instead of long path with shortcut icon retained in launcher
I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened, [![my shortcut location and my executable location][1]][1] [![error message][2]][2] *The code i used in **sublime_text.desktop*** #!/usr/bin/env xdg-open [Desktop Entry] Encoding=UT...
I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened, my shortcut location and my executable location error message *The code i used in **sublime_text.desktop*** #!/usr/bin/env xdg-open [Desktop Entry] Encoding=UTF-8 Type=Application Name=Sublime Text Comment=Sophisticated text editor for code, markup and prose Icon=sublime-text Exec=./sublime_text Terminal=true Categories=Development;IDE; I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).
Suraj Mandal (111 rep)
Feb 7, 2017, 02:30 PM • Last activity: Nov 20, 2018, 10:33 PM
0 votes
1 answers
637 views
How to open file in sublime and execute with python using xargs
I'm trying to open a python script and run it at the same time using `xargs`. I've tried: subl script.py | xargs python3 And a few other variations but none seem to work. How would you do this using `xargs`?
I'm trying to open a python script and run it at the same time using xargs. I've tried: subl script.py | xargs python3 And a few other variations but none seem to work. How would you do this using xargs?
wcarhart (103 rep)
Nov 11, 2018, 05:47 AM • Last activity: Nov 11, 2018, 08:15 AM
0 votes
1 answers
610 views
regex to replace a word in a block in a file?
If I have: words allow bus Is there a regex that can replace allow with something else and keep the other words and the block intact? So it should look like: words not bus or words bus because I will replace the word with something else or take it out. I've tried a regex like this: ( (\s|\w|\n)+)all...
If I have: words allow bus Is there a regex that can replace allow with something else and keep the other words and the block intact? So it should look like: words not bus or words bus because I will replace the word with something else or take it out. I've tried a regex like this: ((\s|\w|\n)+)allow((\s|\n|\w)+) and replace it with \1\n not \2, but it replaces allow and deletes the second half of the block which I don't want. So is there a regex that can replace a word in a block and keep the block intact?
W.Smith (23 rep)
Jul 26, 2018, 05:26 PM • Last activity: Jul 26, 2018, 05:39 PM
0 votes
2 answers
137 views
Editor that can open directory on MacOS / Linux
Is there a default editor (vi or nano don't seem to cut it) that can open a directory and view files on MacOS or Linux? I have Sublime Text installed, but for machines w/o sublime text, what might be the best alternative?
Is there a default editor (vi or nano don't seem to cut it) that can open a directory and view files on MacOS or Linux? I have Sublime Text installed, but for machines w/o sublime text, what might be the best alternative?
Alexander Mills (10734 rep)
Jun 29, 2018, 05:54 AM • Last activity: Jul 18, 2018, 08:47 PM
1 votes
0 answers
23 views
Program is being executed differently
I'm executin Sublime Text 3 by `terminal` on GNOME like so: # subl and I execute the program by the left tab in GNOME too. How I get the same interface(program) using different ways to access it ?
I'm executin Sublime Text 3 by terminal on GNOME like so: # subl and I execute the program by the left tab in GNOME too. How I get the same interface(program) using different ways to access it ?
Marcelo (121 rep)
Dec 4, 2017, 10:40 AM
Showing page 1 of 20 total questions