Share your knowledge at the LQ Wiki.
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-30-2006, 11:41 PM   #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-30-2006 at 11:44 PM.
Old 08-30-2006, 11:56 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,216

Rep: Reputation: 295Reputation: 295Reputation: 295
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 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 06:18 AM.

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