Search Results

Search: Posts Made By: gordonheimer
1,471
Posted By gordonheimer
exactly what i was looking for, thank you
exactly what i was looking for, thank you
1,471
Posted By gordonheimer
sweet, thank you I got it to work. Is there an...
sweet, thank you I got it to work. Is there an easier way to do this, I have more than one file?

---------- Post updated at 02:04 AM ---------- Previous update was at 01:58 AM ----------

like...
1,471
Posted By gordonheimer
Issues with string replacement
I posted this issue a week or so ago and I still cant get the script to work. Here is what I have so far and what Im trying to do.

#!/bin/ksh

old="$1"
new="$2"
file=$3
grep $1 $3 > /dev/null...
2,636
Posted By gordonheimer
i get grep:be: no such file or directory
i get

grep:be: no such file or directory
2,636
Posted By gordonheimer
thank you,is this using sh shell? I cant get...
thank you,is this using sh shell?

I cant get it to work, I assume I am using the wrong shell?

---------- Post updated at 01:53 AM ---------- Previous update was at 12:11 AM ----------

anyone...
2,636
Posted By gordonheimer
script compare files and backup
Im working on a shell script that uses three parameters, a string to replace, the string replacing, and a file name.

In this script it makes a back up file before the replacement occurs. However...
2,646
Posted By gordonheimer
thank you, but what if like the first script...
thank you, but what if like the first script there is more than one file as a parameter, say three or four files to change strings in.
2,646
Posted By gordonheimer
quotations worked, thank you any idea how to...
quotations worked, thank you

any idea how to apply this to any number of file?
2,646
Posted By gordonheimer
Replacing strings
I am trying to take the two line version of this:

mv myFile.txt myFile.txt.bak
sed 's/foo/bar/g' myFile.txt.bak > myFile.txt

and make it into a shell script with three parameters. First two...
2,507
Posted By gordonheimer
thanks for the help guys :)
thanks for the help guys :)
2,507
Posted By gordonheimer
counting users?
Is it possible to count the number of users? or specifically emac users?

I know that you can count certain file sizes, like
find /usr/bin/ -size 11k -exec ls {} \;|wc -1

but how would I count...
6,155
Posted By gordonheimer
find ~/UnixCourse -name *.txt -print | head...
find ~/UnixCourse -name *.txt -print | head --lines=[-]1



hmm still not working, I am having trouble using the head line
6,155
Posted By gordonheimer
also what exactly does $VAR do?
also what exactly does $VAR do?
6,155
Posted By gordonheimer
Oh I wasnt expecting a full answer robsonde...
Oh I wasnt expecting a full answer

robsonde you have been a great help, I am going to try your advice out and Ill post an update of how far I get
6,155
Posted By gordonheimer
find ~/UnixCourse/fileAsst/*.txt like that...
find ~/UnixCourse/fileAsst/*.txt

like that find all the txt documents
6,155
Posted By gordonheimer
well we are currently working on redirection and...
well we are currently working on redirection and pipelines, do I need to use a wildcard to search for the .txt documents?
6,155
Posted By gordonheimer
Unix Assignment, need help!
I have been working on this for the past hour and I can not figure it out :(

What command would you give to produce a listing of the names of all the text files in ~/UnixCourse or its...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 06:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy