Linux Shell : a switch of cat command

  • RezaFiouji
  • Born
  • Born
  • User avatar
  • Posts: 4

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

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.
  • RezaFiouji
  • Born
  • Born
  • User avatar
  • Posts: 4

Post 3+ Months Ago

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
  • PsyckBoy
  • Posts: 204
  • Loc: SoCal

Post 3+ Months Ago

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
  • Posts: 4

Post 3+ Months Ago

: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
  • desertland
  • Posts: 206

Post 3+ Months Ago

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 97 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.