Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-31-2006, 12:41 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
bash script doesnt work in slackware


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



Last edited by duBeN; 08-31-2006 at 12:44 AM.
Old 08-31-2006, 12:56 AM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,259

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

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




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 04:28 PM
my first shell script doesnt work :( boxerboy Programming 16 12-22-2005 07:31 PM
Why doesnt my simple html post to cgi script work? ginda Linux - Networking 10 03-15-2005 04:32 PM
Slackware 10 Mouse doesnt work Harlin Linux - Hardware 4 03-09-2005 03:49 AM
BTaudio doesnt work slackware 9.1 bignester Linux - Hardware 0 01-13-2004 12:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 PM.

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