![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem in making shell script | girish.batra | Shell Programming and Scripting | 4 | 02-08-2008 09:10 AM |
| making a archive script | jimmyc | Shell Programming and Scripting | 1 | 09-15-2007 05:02 AM |
| making script | shary | Shell Programming and Scripting | 2 | 06-03-2007 05:16 PM |
| Making flags for my script | rcunn87 | Shell Programming and Scripting | 6 | 06-29-2006 11:23 AM |
| Making a script exectuable | BuyoCat | Shell Programming and Scripting | 5 | 09-07-2005 03:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need help making a script
Here is what I have:
#!/bin/bash # Setup year date and month YR=`date +%Y '{print $6}'` MON=`date +%b '{print $2}'` DAY=`date +%d '{print $3}'` file=$YR$MOY$DOM # clear # Dump database using USER/PASS to [filename].[date].sql mysqldump --user=me -ppass database > database-db.$file.sql The YR, MON and DAY dont work. Sounds like the data is not getting put into the variable . What Am i doing wrong? thanks for the help |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|