Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Assign expression to a variable

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-19-2017
rovf rovf is offline
Registered User
Join Date: Jun 2011
Last Activity: 12 September 2017, 2:10 AM EDT
Posts: 171
Thanks: 24
Thanked 31 Times in 27 Posts
Originally Posted by Don Cragun View Post
Hi rovf,
If, and only if, there is a file named in the directory in which you invoke the command
You are right! I was too much stuck into zsh (where you would get an error "no matches found", unless you explicitly override this), and did not remember that bash and ksh are different in this respect.

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Assign regular expression change to only first two columns quincyjones Shell Programming and Scripting 7 12-20-2010 03:36 PM
Shell assign variable to another variable 3junior Shell Programming and Scripting 3 11-18-2010 10:20 PM
assign awk's variable to shell script's variable? tiger2000 Shell Programming and Scripting 4 04-13-2010 03:53 PM
Assign this to a variable.... ak835 Shell Programming and Scripting 5 10-29-2009 08:03 AM
assign a value to a variable Shivdatta Shell Programming and Scripting 10 01-17-2007 06:40 AM

All times are GMT -4. The time now is 11:39 AM.