Search Results

Search: Posts Made By: chu816
2,816
Posted By chu816
Thanks jim, you're amazing. That's what I was...
Thanks jim, you're amazing. That's what I was looking for. I'm guessing I should just do

awk ' /test/ {arr[$0]++}
END{ for(i in arr) {if(arr[i]>1){print i}}}' infile > outfile

if I...
2,816
Posted By chu816
Printing out duplicate lines in a file with Csh
Hi guys,

I was wondering if there was an easy solution, using tcsh, to print out lines that appear twice with a given pattern in a file?

So if I am looking for lines with "test" in a given...
2,092
Posted By chu816
Tabbing a line a variable number of times in shell
Hi,

I had another question. I was wondering if there was a way to tab a line a variable number of times in tcsh. To go into details, I want to tab a line by how deep a file is in its path.

So...
3,230
Posted By chu816
Thanks for the fast reply, this was the problem....
Thanks for the fast reply, this was the problem. :D
3,230
Posted By chu816
Substituting a shell variable in sed
Hi guys,

I'm trying to figure out how to use a shell variable inside my sed command.
I just want to remove a certain part of a path. I've tried three different combinations and none of them...
1,561
Posted By chu816
Subroutine redefined warnings with require keyword
I've been writing a perl script that uses the require keyword. I need to use require for two files, say file a and file b. Here is a general overview of my code:

@files = ("a", "b");

foreach...
986
Posted By chu816
Question about a sed command
Hi guys,

I'm currently trying to understand a piece of shell script and it has some sed commands. I've been looking through sed tutorials to figure out what it does but still no luck :confused:
...
Showing results 1 to 7 of 7

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