LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2014, 08:23 AM   #1
mahsa.ch
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: Disabled
replace command in csh


Hi everybody
i wanna run a csh script in linux, in the script i used replace command, now when I wanna run it, there is a problem in running ,it says there is no replace command,i don`t know exactly what is the necessary package for replace command?
 
Old 11-26-2014, 11:28 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
The replace command is found in /usr/bin/replace. The manual page (man replace describes it usage (installed in Slackware by default). If you've not done so, you might want to try
Code:
whereis replace
Depending upon how you've written and launch your shell program (script), you may not have a complete PATH environment and it may be useful to simply include the absolute path name; i.e., /usr/bin/replace.

You don't mention what distribution you're using so asking what package it's in is, well, difficult to answer.

Hope this helps some.
 
Old 11-27-2014, 07:53 AM   #3
mahsa.ch
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi , thanks alot,,
I tried whereis replace,,,there was no replace in usr/bin ,,, here is the line of the script that i wanna run,,, here is the use of replace yhat I mean , awk '($1==ii) {print FILENAME,$0}' ii=$ii $stack_dir/*xyz | replace "_" " " |\
I search alot,,, but i could not find the useful package ,,,
 
Old 11-27-2014, 08:56 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
The replace utility is found in MySQL (and MariaDB).

Try installing MariaDB from your distribution's software library.

Hope this helps some.
 
  


Reply


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
running sh scripts from csh command line casperdaghost Linux - Newbie 6 04-22-2010 05:12 AM
Joining command in csh tboss888 Programming 5 02-05-2009 05:19 PM
csh command log like .bash_history ivanatora Linux - General 3 05-14-2008 05:34 AM
!command expansion in csh vs. bash jhwilliams Linux - Software 9 08-27-2007 05:04 PM
problem in perl replace command with slash (/) in search/replace string ramesh_ps1 Red Hat 4 09-10-2003 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration