Linux Shell : a switch of cat command

  • RezaFiouji
  • Born
  • Born
  • User avatar
  • Joined: Aug 01, 2005
  • Posts: 4
  • Status: Offline

Post August 2nd, 2005, 2:22 am

Hi,

cat > body
cat > top
cat > button
cat button >> body
cat body >> top

I want replace a line command instead 2 last line of these commands ( 4th & 5th line ) ,I hear about a switch of cat command for this work .
thanks for your guide :)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 2nd, 2005, 2:22 am

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post August 2nd, 2005, 5:15 am

I have absolutely no idea what you are talking about.

Could you perhaps be, more specific? I realize that English is quite probably a second language for you, however you'll have to find a better phrasing if you wish any aid from this forum.

Cheers.
"It's always a long day, 86,400 won't fit into a short."
  • RezaFiouji
  • Born
  • Born
  • User avatar
  • Joined: Aug 01, 2005
  • Posts: 4
  • Status: Offline

Post August 2nd, 2005, 8:47 pm

i hear about a switch,by that switch we can replace 5 command in above with 1 command ....
it's means we write 1 command and create 3 file and append these together ...
  • PsyckBoy
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jun 20, 2005
  • Posts: 204
  • Loc: SoCal
  • Status: Offline

Post August 3rd, 2005, 9:27 am

cat > body; cat > top; cat > button; cat button >> body; cat body >> top

There, now it's all on one line.
  • RezaFiouji
  • Born
  • Born
  • User avatar
  • Joined: Aug 01, 2005
  • Posts: 4
  • Status: Offline

Post August 5th, 2005, 9:28 pm

:shock: :wink:
I want a switch of Cat command for this work ....
i hear about this ,
by this switch we can create 3 file and concat these together
ok ?
  • desertland
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Apr 28, 2005
  • Posts: 206
  • Status: Offline

Post August 10th, 2005, 11:24 am

Just write a shell script and put it in /bin. You can make it do whatever you want.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 102 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.