bash

  1. R

    Bash generating files with linux lock

    How do I solve bash lock file and directory generation? Every time I create a new file that file is lock-generated
  2. R

    Bash generating files with linux lock

    How do I solve bash lock file and directory generation? Every time I create a new file that file is generated with a lock.
  3. F

    Using Sed to replace some text and add test

    Hello, I have the following records in an LDIF file (actually, I have thousands of these records in the file): dn: cn=userA,ou=users,ou=vault,o=company changetype: modify add: attribute1 attr2: userA dn: cn=userB,ou=users,ou=vault,o=company changetype: modify add: attribute1 attr2: userB I...
  4. L

    Text Based Game in Bash - Help Wanted

    Hello! I am a 16 year old who just got into programming. I am fairly new, but I have been trying to learn Bash. I thought a fun project I can attempt is to to make a small text based game based on "Lemonade Stand" from the late 70s. I created a very simple version (works, most of the time)...
  5. N

    Which linux os have bash and which one have dash?

    Hello everyone, sorry for the basic question but i'm new at Linux... I was curious to know which operating systems have bash shell, because as far as i know ubuntu has dash shell. For me is pretty important to know because the first exam that i'll have at university will be on C and bash shell...
  6. D

    date time diff (bash)

    itry to make date time diff in seconds looked on the web for different soltuin but nothing works for example this are my dates data1=`date +"%d-%m-%YT%H:%M:%S"` and second date i get from query values for example : 03-07-2019T17:25:58 03-07-2019T13:00:00 how do i get time diff in seconds?
  7. iridakos

    Remove duplicate lines from files keeping the original order (one-liner explained)

    Hi all, I published a post providing ways for removing duplicate lines from text files keeping the original order and a thorough explanation of how the awk one-liner works. https://iridakos.com/how-to/2019/05/16/remove-duplicate-lines-preserving-order-linux.html Hope you find it useful
  8. N

    Values rotation in array with bash

    Hello I created a little script that allow to make a rotation of values in an array. The goal was to shift the values to the right and that the last value of the array became the first value in order to create a rotation. The purpose of the exercice was to do it without using a temporary...
  9. C

    Where to learn more about BASH?

    I've come through the advanced tutorial Programming with BASH and I am quite interested in it. So where and how can I learn BASH programming systematically and comprehensively? Thanks in advance!
  10. A

    Passing complier output to bash

    This is one of those "it works fine until...". Background: I am executing bash script to build a C++ library. From options passed to the script it supposedly verify that selected crosscomplier is OK to use. To aid development the compiler is optioned with " -v -V -qversion " in " do...
  11. C

    bash-based Archlinux installer: Arc

    I've been working on a bash-based installer for archlinux. https://github.com/c1ph3r8472/Arc I thought I'd post it here for any who may want to try it / perhaps suggest improvements. The intent is for it to be infinitely reconfigurable via a single config file, thus making reinstallation...
  12. Rob

    bash or fish for shell?

    I've used bash for the past 20 years or so for my go-to shell because it's the default shell on most linux distributions - at least the ones i've used professionally for work. I wanted to make sure whatever I did on my workstation, i'd be able to mimic across the farm. Lately, since I now do...
  13. S

    could anyone help me out??

    if linux systems will not consider anything after # sign in the scirpt, then how come #!/bin/bash works?? #!/bin/bash starts with # sign it shouldn't be consider right??but if the #!/bin/bash is not included in the scirpt its not working??? explain me pls......
  14. N

    Automate scripts

    Hi i have a Ethereum node running and mining on a terminal in linux. i want to create a script that will start up the node.sh roughly 2 minutes after startup. my scripts is in the home/chainskills/private/startnode.sh. i want this to be executed after startup. I have barely any knowledge of...
  15. Alboy1975

    Complete linux noobie, ordered secondhand laptop (what i need to know)

    Hi I am awaiting delivery of the below laptop, which I've picked up for £170: https://www.ebay.co.uk/itm/Lenovo-Thinkpad-Ultrabook-Helix-11-6-Touch-i7-3667U-8GB-256GB-SSD-Windows-10/153120834786?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649 I have been around computers most of my...
  16. blackneos940

    Does Anyone Know How To Link A Qt Button With A Terminal Command.....? :3

    I was wondering this today, and I'm not sure how..... :\ Keep in mind that I'm still pretty new to Qt, and might need a complete File, #includes, int main(), and all..... :3 I wanna do all this from Nano, so I don't have to use Qt Creator, if possible..... :3 Thank you SO much...
  17. Rob

    Learning go lang

    So, Im pretty profficient in bash scripting.. my plan was to merge into python, then maybe go... Or do you think I could jump right into go from bash? Any pointers in learning to code in go?
  18. LordTrell

    beginner bash writing

    Hello! i am new to bash, need assistance with a script for some assignment:... A shell script to list out the contents of any directory, and indicate for each file (including invisible ones) whether the file is a directory, a plain file, and permissions such as executable ect i can list out...
  19. iridakos

    goto - a bash utility to navigate to aliased directories

    Hello everybody, I published a bash utility named goto. The tool allows users to navigate to directories using an alias that was previously explicitly defined. Its best feature is the autocomplete functionality making navigation pretty fast. Example A user may register a directory with...
  20. JasKinasis

    note v1.0 released today!

    Hey all. After this conversation the other day, I finally got around to cleaning up, documenting and releasing my note-management application. 'note' is a very simple application written in shell-script. It's a personal, pet-project I've been developing and using at home and at work for a...
Top