LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-30-2006, 11:41 PM   #1
duBeN
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
bash script doesnt work in slackware


Hello

could someone tell me why script:

date | read s1 s2 s3 s4 s5 s6 ; name='bkp_'$s3'_'$s2 ; echo $name

works in unix but not in slackware

output:

duben@treska:~/scripts$ bkp.sh
bkp__

Last edited by duBeN; 08-30-2006 at 11:44 PM.
 
Old 08-30-2006, 11:56 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
No idea, but try:

date | while read s1 s2 s3 s4 s5 s6 ; do name='bkp_'$s3'_'$s2 ; echo $name; done

output:

bkp_31_Aug
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware rootCommand: doesnt work hosler Linux - Software 7 04-04-2006 03:28 PM
my first shell script doesnt work :( boxerboy Programming 16 12-22-2005 06:31 PM
Why doesnt my simple html post to cgi script work? ginda Linux - Networking 10 03-15-2005 03:32 PM
Slackware 10 Mouse doesnt work Harlin Linux - Hardware 4 03-09-2005 02:49 AM
BTaudio doesnt work slackware 9.1 bignester Linux - Hardware 0 01-13-2004 11:53 AM


All times are GMT -5. The time now is 07:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration