LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   replace command in csh (https://www.linuxquestions.org/questions/linux-newbie-8/replace-command-in-csh-4175526571/)

mahsa.ch 11-26-2014 08:23 AM

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?

tronayne 11-26-2014 11:28 AM

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.

mahsa.ch 11-27-2014 07:53 AM

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

tronayne 11-27-2014 08:56 AM

The replace utility is found in MySQL (and MariaDB).

Try installing MariaDB from your distribution's software library.

Hope this helps some.


All times are GMT -5. The time now is 05:42 PM.