Search Results

Search: Posts Made By: risk_sly
4,268
Posted By risk_sly
thanks for the reply. I was able to solve it now...
thanks for the reply. I was able to solve it now using the code below:

find ./myDirectory -type f ! -exec grep -lv '4R' {} \;

thsnks so much for the reply, is still helps. :)
4,268
Posted By risk_sly
Thanks for the reply danmero, but this code does...
Thanks for the reply danmero, but this code does the opposite. it returns all files with the text "4R". I need to return all files WITHOUT "4R". I also tried negating it using ! character as...
4,268
Posted By risk_sly
search files without a specific text
Hi all,

I need UNIX command that would give me all files without the string "4R" anywhere in the file. I have about a hundred files in my directory, and I need to list all files wihtout the...
8,130
Posted By risk_sly
NIS Group, Netgroup
Hi all,

Is there a way for me to know the NIS group and Netgroup my UNIX account? Thank you.
6,729
Posted By risk_sly
Delete files by date
Hi,

Can anyone help me delete old files in a directory? Let's say, I want to delete all files which are 365 days old. Thank you.
29,193
Posted By risk_sly
thanks for the reply guys.
thanks for the reply guys.
29,193
Posted By risk_sly
using sed or grep to find exact match of text
Hi,

Can anyone help me with the text editing I need here. I have a file that contains the following lines for example: (line numbers are for illustration only)

1 Hello world fantasy.
2...
1,831
Posted By risk_sly
which is better?
Hi,

I would like to know which works better in this scenario:

I have a file which contains about 300K to 400K records. This file will be loaded into an oracle table but will be filtered...
16,275
Posted By risk_sly
Thanks radolouv. But how do I use this? $ cat...
Thanks radolouv. But how do I use this?
$ cat uniq.awk
!arr[$1]++
$ awk -f uniq.awk file


what is uniq.awk file?
16,275
Posted By risk_sly
Thanks again Jim, but I still get the "arr[:...
Thanks again Jim, but I still get the "arr[: event not found error". :( I also noticed that when I recall the command (by pressing up arrow key), the part "![arr", is removed from the script. ie....
16,275
Posted By risk_sly
Thanks for the reply Jim. But when I tried the...
Thanks for the reply Jim. But when I tried the script, it returned "event not found error". any idea what's causing this error? also, i forgot to include in my sample, that the file i want to...
16,275
Posted By risk_sly
Remove duplicate rows of a file based on a value of a column
Hi,

I am processing a file and would like to delete duplicate records as indicated by one of its column. e.g.

COL1 COL2 COL3
A 1234 1234
B 3k32 ...
9,489
Posted By risk_sly
thank you raidzero. However, when I tried...
thank you raidzero.

However, when I tried using find / | grep isql, the command returns too many directories and most of them displays "Permission denied" at the end of the directory. e.g.
...
9,489
Posted By risk_sly
Using isql in korn shell
Hi all,

I have two accounts in a Unix server, the first one uses .tcsh as default shell and the other uses .ksh (korn shell) as default.

When I login using the account with .tcsh default,...
49,323
Posted By risk_sly
Thanks so much era! this script works! :) ...
Thanks so much era! this script works! :)

awk '$1 ~ /foo/ || $2 ~ /bar/ { print }'
49,323
Posted By risk_sly
Thanks for the reply Yogesh. I'm sorry, I forgot...
Thanks for the reply Yogesh. I'm sorry, I forgot to mention that my file is tilde (~) separated. By the way, I was able to see other threads similar to what I want to accomplish, the only problem...
49,323
Posted By risk_sly
Filtering records of a file based on a value of a column
Hi all,
I would like to extract records of a file based on a condition. The file contains 47 fields, and I would like to extract only those records that match a certain value in one of the columns,...
Showing results 1 to 17 of 17

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