12,387 reputation
22541
bio website
location
age
visits member for 3 years, 8 months
seen Sep 16 at 12:35

Sep
11
comment How to see the command attached to a bash alias?
bash has no which command.
Sep
7
awarded  command-line
Sep
7
awarded  Guru
Sep
3
comment How to see the command attached to a bash alias?
@user251046 keep using type until you hit something other than an alias ...
Aug
16
comment How to determine whether a process is running or not and make use it to make a conditional shell script?
@jp093121 The EXIT trap is triggered when the script exits. Whether it exits because it reaches end of script, an exit command, or receives a signal (that can be handled), the rm command is run. So as long as it ends after the trap has been set, the lock should be gone.
Aug
12
awarded  Nice Answer
Aug
10
awarded  Nice Answer
Jul
26
comment Ubuntu 14.04 not running Bash scripts in /etc/cron.daily
Right. Commands shouldn't have extensions anyway, so that's a good thing.
Jul
22
comment Parsing a HTML page with Bash
Please see stackoverflow.com/a/1732454/1524545
Jul
3
awarded  Good Answer
Jun
25
awarded  Enlightened
Jun
25
awarded  Nice Answer
Jun
25
comment Reasons why crontab does not work
@BipinVayalu, that probably means it either doesn't have access to that file, or the path does not exist. Perhaps it's scripts rather than scritps?
Jun
16
awarded  Good Answer
May
22
comment How to change extension of multiple files from command line?
@user2757729, it does replace it. "${1%.abc}" expands to the value of $1 except without .abc at the end. See faq 100 for more on shell string manipulations.
May
15
awarded  Good Answer
Apr
13
comment Pause execution and wait for user input
The shebang is wrong. You're using bash features, so the shebang must be set to #!/usr/bin/env bash or #!/bin/bash.
Apr
13
comment Why is this command starting endless terminals and how to make it work?
Don't embed the arguments into the script. That is very error prone. Instead, pass them on as arguments: gnome-terminal -x bash -c 'cd ~/Downloads/youtube && youtube-dl "$@"; read -p "Press [Enter] key"' _ "$@"
Apr
13
answered Why is this command starting endless terminals and how to make it work?
Apr
13
comment Why is this command starting endless terminals and how to make it work?
ok, that doesn't seem to spawn a terminal, so it doesn't answer the question of why it's recursing. Are you sure n-youtube-dl is that python script and not actually your wrapper itself?