LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2009, 04:06 PM   #16
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 179Reputation: 179

Quote:
Originally Posted by GrapefruiTgirl View Post
Did you guys know there's a `tac` command?
Well, there's more than one way to skin a tac.
 
Old 08-26-2009, 04:23 PM   #17
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by colucix View Post
What about rev?
Code:
$ echo This is a reversed line | rev
enil desrever a si sihT
It does not work with palindromes, anyway!
hahaha

that is a funny one!!

ok guys!

I liked this topic... if you guys want check this topic where I posted my little script.

it was just for practicing nothing big really. You can see what i was trying to do with the "here document".

Thanks for all your help and all the new info (at least for me) that you guys posted!
 
Old 08-27-2009, 11:53 AM   #18
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by catkin View Post
Code:
echo 'And
this is
sweet, too
(and doesn't start a sub-process)'
is true but then:

Code:
echo 'Thanks for using the program
The number of files you used was $files.'

#Thanks for using the program
#The number of files you used was $files.
#                                 ^^^^^^^ Literal

echo "This way should work:
$files files were printed"

#This way should work:
#20 files were printed"
Thanks for the pointer anyway!
 
  


Reply



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
[SOLVED] [bash] code wont work - here document RaptorX Programming 6 08-17-2009 12:02 PM
a broken bash document? ninja master Linux From Scratch 10 01-29-2009 02:54 PM
Bash script creates blank file name snowman81 Programming 9 03-02-2008 10:37 PM
[BASH] Search for 5-digit numbers in document General Programming 2 01-10-2007 08:06 PM
LXer: Piracy creates jobs, FOSS creates opportunities LXer Syndicated Linux News 0 11-02-2006 11:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration