Tag: bash-scripting

74 How do I enter a literal tab character in a bash shell? 2011-11-28T16:04:02.520

30 ZSH: Read command fails within bash function "read:1: -p: no coprocess" 2013-02-22T16:59:47.960

29 Suppress execution trace for echo command? 2014-09-03T09:22:08.273

26 How can I compare a variable to a text string, rather than integer, in an if/else statement? 2013-01-30T04:49:30.080

25 How to update bash on Mac OS X Yosemite 2014-12-27T01:27:04.790

24 Passing two arguments to a command using pipes 2011-08-01T20:54:09.350

21 Bash: optionally passing arguments to a command 2014-08-25T05:09:47.203

20 Is it safe to open a file that is being written by a running script? 2018-05-06T09:07:12.330

19 Writing shell scripts that will run on any shell (using multiple shebang lines?) 2012-11-08T17:54:41.803

16 Prefix to each output of a command on runtime 2013-07-23T10:58:18.490

15 how to grep and print the next N lines after the hit? 2011-06-16T15:46:53.117

14 Properly escaping forward slash in bash script for usage with sed 2014-06-09T19:55:55.100

13 How get full path to target of link 2011-08-31T09:57:04.407

13 How to truncate file by lines? 2012-07-24T07:00:15.210

13 bash completion for filename patterns or directories 2013-03-12T14:48:37.440

13 Replace backslash("\") with forward slash("/") in a variable in bash 2016-04-21T07:24:57.373

12 Howto switch / chage user id witin a bash script to execute commands in the same script? 2012-08-30T09:07:04.413

12 why doesn't a bash while loop exit when piping to terminated subcommand? 2014-01-04T07:34:54.207

12 Difference when using backticks in double quotes and single quotes in Bash 2015-02-06T14:42:33.273

12 Edit xml file using shell script / command 2015-05-19T13:07:42.487

10 awk / sed to print only up to the underscore character 2012-05-16T16:39:05.497

9 how to properly use $1 in an alias with two arguments 2011-06-09T18:18:02.700

9 Automated Interaction with Google Chrome 2011-07-13T18:19:12.217

9 How to get list of all child process spawned by a script 2013-09-06T17:15:46.490

9 How to properly restore settings when running a script using "source"? 2013-09-21T07:33:27.823

9 Write n bytes from a file into another in Bash 2017-09-19T18:17:56.290

8 appending timestamp to tail -f results 2011-06-17T06:04:06.890

8 How to make sed omit not matching lines? 2013-01-24T10:59:21.883

8 What commands would I use to create two child processes serially? 2018-02-17T04:05:45.640

7 Process each line of a file in bash 2011-01-15T18:50:06.627

7 Delete all files (except the four newest) throughout directories using a Bash script 2011-08-16T03:41:50.490

7 Linux: How does file modification time affect directory modification time and directory access time? 2016-02-12T13:25:13.443

7 cp: cannot stat '/some/path/*': No such file or directory 2017-07-28T14:06:42.700

6 Process files in a folder that haven't previously been processed 2012-07-11T01:01:26.297

6 How to move all sibling folders into one folder? 2013-01-19T22:23:45.143

6 Custom string space manipulation with sed 2016-10-13T11:12:00.083

6 Bash variables with space (directories) 2017-08-24T05:01:31.263

6 Get filename without extension in Bash 2018-09-14T00:03:09.263

5 How do I use the -ne flag for echo in a shell script? 2011-06-21T16:38:48.863

5 How do I concatenate strings from a list in a bash script? 2014-09-17T11:57:55.967

5 Use "read" in Bash script with a standard answer 2014-11-04T15:45:10.910

5 Is there a way to pass arguments via pipe on bash? 2014-12-11T17:06:12.903

5 messaging.sh: line 29: [: missing `]' 2015-06-12T15:38:42.453

5 how to gzip and scp at the same time 2015-07-27T10:22:11.337

5 Manipulating datestamp string consistently with date format %Y%m%d 2015-09-22T16:17:28.810

5 How to redirect STDERR to both file and console and STDOUT to file only 2015-11-11T00:08:53.717

5 How to mail output of shell script as a cron job 2016-01-02T01:09:23.943

5 how to check whether two directories differ (no file list) 2017-01-13T08:44:39.110

5 How to change/add a tracker to a .torrent file using the command line? 2017-05-15T10:35:38.347

4 Handle filename with spaces inside Bash-script 2011-01-09T13:08:15.987

4 What is the simplest way to remove lines from one file matched with lines from another file? 2011-07-25T23:05:22.913

4 Cannot resize tmux pane from bash script 2011-11-07T18:22:16.257

4 Truncate file in a pipe 2012-02-24T04:29:14.383

4 BASH function not escaping control characters 2012-08-31T19:14:27.050

4 How to filter output from a command in OS X 2012-09-10T17:10:48.853

4 Script-specific autocomplete in shell 2012-12-24T02:35:06.027

4 Is a subshell executed with a here string? 2013-02-08T09:17:26.817

4 Bash script: "[[: not found" 2013-02-14T10:53:23.443

4 How to get the result from bash auto-completion as a string? 2013-03-25T07:20:55.883

4 how can sed get patterns from a file 2014-02-19T20:02:58.807

4 How to run a bash script in a daily basis on my remote server? 2014-04-09T15:33:11.800

4 Update a sqlite database while select into a while loop 2014-10-23T13:08:26.743

4 tmux - get pwd of another pane in a bash script? 2015-05-07T11:38:56.200

4 list multiple file types in bash for loop 2015-05-07T22:12:16.447

4 Why some commands don't take input redirection? 2015-06-04T22:04:27.577

4 Files with space in name 2015-12-29T15:56:33.230

4 Confused about jq parser 2016-03-04T04:49:40.133

4 Create aliases dynamically 2017-10-06T21:02:27.877

4 Insert quote into string variable in bash 2017-12-13T10:39:51.530

3 Shell script to rename multiple files from their parent folders name 2011-02-01T09:56:11.283

3 Convert string "1-5" into array of numbers in bash 2011-11-03T09:37:57.927

3 Word splitting does not see my quotes 2012-07-27T23:05:52.090

3 Checking pids under all users and re-launching the processes after reboot 2012-08-28T08:58:14.600

3 Why doesn't this script work? 2012-10-01T20:02:03.523

3 merge pieces of file together 2012-12-19T20:48:06.177

3 output the items that showed up 2 times and more 2013-03-10T20:21:02.387

3 Parse multiple HTML to text and rename as parent Directory 2013-05-09T06:45:28.233

3 Found a script on my cron.monthly, i am wondering what's it doing? 2013-05-22T10:55:09.560

3 Removing files older then 1 month, but leave one file per month 2013-07-16T10:25:41.153

3 Append dir to PATH 2013-08-01T07:13:15.877

3 how to get flash video stream URL from website without browser (telediario, rtve) 2013-08-29T11:21:32.747

3 Bash conditional redirection when testing/debugging 2013-09-23T21:41:38.813

3 linux find: searching for files smaller than 2Kb misses the ones between 1 and 2Kb 2013-10-03T07:18:06.457

3 How do I get Linux commands and scripts to work on Cygwin? 2014-02-26T16:25:13.633

3 How to recursively create a directory if it does NOT yet exist? 2014-04-29T03:49:47.350

3 Are shebang invocations detectable? 2014-05-24T23:25:02.453

3 How to work around Bash for loop not exiting when a subcommand errors? 2014-07-12T00:11:28.053

3 opening several terminals at once 2014-12-15T07:58:30.243

3 How to make a bash script that names files with today's date 2015-04-15T23:38:12.617

3 bash behavior on sigterm 2015-05-03T19:23:19.187

3 Script answer to apt-get request "To continue type in the phrase 'Yes, do as I say!'" in bash 2015-05-29T19:42:01.460

3 splitting separate bashrcs for different purposes 2015-08-18T21:25:22.360

3 How to add # Shebang in first line of a file which is an auto create script by another program 2015-10-27T10:07:35.837

3 Call sourced file's functions in bash script 2016-07-12T13:19:00.777

3 Can I transfer a file from Windows to Unix using shell script, not WinSCP? 2016-10-06T14:16:20.283

3 Which bash rc files are run on non-interactive/non-login shells? 2017-05-03T16:20:24.373

3 Remote Execution of a Shell Script that Takes a Local File as an Input Parameter 2017-06-26T20:36:15.460

3 What is wrong with this while loop? 2017-08-02T11:27:00.107

3 Redirect input from code or terminal to running code or terminal? 2018-02-19T08:50:21.630