Search Results

Search: Posts Made By: mz043
1,660
Posted By mz043
hi, thanks for the reply. the problem is...
hi,
thanks for the reply. the problem is because i'm using cat -n to number the lines in the file and then try to grep the line number. cat -n puts whitespace and i think that's where i 'm going...
1,660
Posted By mz043
help with grep
Hi.

I'm trying to grep a line that starts with a specific number from a file using a loop. The problem is:

grep -w $i filename (e.g. for i=1)

gives me back

line 1
line 10
line 11
......
1,178,010
Posted By mz043
Thanks that does the trick. Also taking it a...
Thanks that does the trick.

Also taking it a bit further is there a way to clean up a file so it only has unique occurrences? Say I don't know the patterns to search for, I just want to remove all...
1,178,010
Posted By mz043
grep unique occurrences
Hi,

How do i grep unique occurrences from a file.

I have a log file with multiple occurrences of 'foo' for instance. When i do:
grep foo, I get all the lines that contain foo.
Is there any...
1,485
Posted By mz043
Thanks. That did the trick!
Thanks. That did the trick!
1,485
Posted By mz043
grep question
Hi,

I have a log file that I'm trying to tidy up using grep. The log file contains a lot of lines like the ones below:

2> change archivelog all crosscheck;
3> release channel;
4> run
5> {...
13,959
Posted By mz043
Thanks for the reply. I want to avoid...
Thanks for the reply.

I want to avoid chroot, as I don't have much experience with UNIX sysadmin and chroot sounds like the kinda thing that if you get wrong, you quietly pack up your stuff, take...
13,959
Posted By mz043
Home Directory Jail for Users
Hi,

I am looking for a shell script (or any other way), that puts a user in a home directory jail. So for example, I have a user named richard and I don't want him wandering outside...
Showing results 1 to 8 of 8

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