Search Results

Search: Posts Made By: 435 Gavea
26,842
Posted By 435 Gavea
piping the output of find command to grep
Hi,

I did not understand why the following did not work out as I expected:

find . -name "pqp.txt" | grep -v "Permission"


I thought I would be able to catch whichever paths containing my...
8,929
Posted By 435 Gavea
:o the slash was the problem, now the...
:o
the slash was the problem, now the variables are getting into the package.
thanks!
8,929
Posted By 435 Gavea
sqlplus session being able to see unix variables session within a script
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.

sqlplus << EOF
user1@db1/pass1

BEGIN
...
154,846
Posted By 435 Gavea
yeah... I hoped it would be possible in a...
yeah...
I hoped it would be possible in a single command, but, anyway, thanks !
154,846
Posted By 435 Gavea
sed to read and write to very same file
This is likely to be a dumb one.

How can I use sed to substitute string occurances having it read from an input file and write to this very same file ?

I have a file with lots of occurances of...
5,222
Posted By 435 Gavea
it seems issuing only find <file system from...
it seems issuing only
find <file system from where I want the copy to begin> -name <pattern> -exec cp {} <destination_dir> \; worked fine for this purpose.

Thank you all, anyway!
5,222
Posted By 435 Gavea
cp without maintaining the soucre directory tree hierarchy
Hi guys.

I'm willing to copy a specific file system hierarchy, but I would not like to maintain the directory tree organization.


For example:

Let's say /a/b/c is the fs I'm wanting to copy...
5,234
Posted By 435 Gavea
Possible return values for $?
I think the $? returns 0 if the last issued command was successful and otherwise if not. But does anyone knows the value list that may be returned ? (or it is only zero/one ? )

Thanks in advance,...
4,808
Posted By 435 Gavea
Sorry for my loose details on the problem,...
Sorry for my loose details on the problem, Perderabo.
And thanks for you both, my problem were indeed the spaces :mad:
4,808
Posted By 435 Gavea
until command syntax error
Hi there.

I spent too much time away from Unix, now I can't remember how to issue a simple until command in ksh :mad:

could you tell me what is wrong with the following code sample:

...
37,407
Posted By 435 Gavea
transferring files using ftp but mantaining the dates
Hi guys,

Is there a way I can ftp some files without changing the last-modified dates from them ?

I haven't seen any ftp option to do so.
Or, alternatively, how do I change the last-modified...
3,022
Posted By 435 Gavea
Yep, I was using the & character...
Yep, I was using the & character...
3,022
Posted By 435 Gavea
I was trying something on the way of nohup -p...
I was trying something on the way of
nohup -p `ps -u xz1f78 | grep "ksh" | cut -d' ' -f2` $0 ...

but using nohup ksh ... worked.


Thanks a lot. ;)
3,022
Posted By 435 Gavea
Have a script running even with the shell logging out
Hi all,
I wish to have a script running even if my session is disconnected.
I've tried calling another session within it and using sudo to a different user, but it didn't work - as it was expected...
6,041
Posted By 435 Gavea
Passing a variable name to be created within a function
Is it possible to pass a variable name, as a parameter to a function, so it can be created within this function ?

Something like this:

func_uppercase abcdefgh var_name

where the 1st...
68,710
Posted By 435 Gavea
Case (ksh)
Isn't any "NOT" operator that can be used in the case construction like :

case $VAR (NOT) in
option1 | option2 | option 3...) COMMAND ;;
esac


Or something similiar...
108,072
Posted By 435 Gavea
Does the awk solution works with different...
Does the awk solution works with different delimiters ?

I was talking about something like this:

abcd/efgh/ijklm/nopq

And I'd like to "cut" only the nopq
108,072
Posted By 435 Gavea
Cut the last field
Hello guys.

Is there any way I can cut the last field using "cut" ???


(without putting it into a while...)

Thanks.
435 Gavea.
42,201
Posted By 435 Gavea
Definition of a regular file
Hi there.

reading the if entry from man, i get this:

-f file True if file exists and is a regular file.

What is exactly a regular file ?





Thanks,

--- 435 Gavea ---
4,076
Posted By 435 Gavea
Thanks
Thanks, I'll take a look at what you've suggested !

;)
4,076
Posted By 435 Gavea
Building a Linux like LS for Unix
I'm trying to customize my environment at work in a Unix system.
So I'm starting with the ls command...

I'd like to make it run as the Linux ls...
Even in color, if possible...

My first...
23,976
Posted By 435 Gavea
Ok, but isn't any way to return directly the 3...
Ok, but isn't any way to return directly the 3 characters ? I mean, you can't select directly these 3 characters using the right pattern ?

Or there isn't other way unless you select the entire...
23,976
Posted By 435 Gavea
Hehe, obviosly \. was intended to be a real...
Hehe, obviosly \. was intended to be a real dot character...
I was kinda desperate , so I tried this out... :p

But, let me see If I got it:

You're substituting any characteres till the...
23,976
Posted By 435 Gavea
Extracting the last 3 chars from a string using sed
Hi.

Can I extract the last 3 characters from a given string using sed ?

Why the following doesn't work (it prints the full string) :

echo "abcd" | sed '/\.\.\.$/p' doesn't work ?

output:...
4,607
Posted By 435 Gavea
Job finished.
I think that's it.

Above you can see the script, in its final version ...
I've made the basic tests and it passed...

Maybe this lock script - that uses only shell scripting - no files nor...
Showing results 1 to 25 of 42

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