Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
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.
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 ,,,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.