Search Results

Search: Posts Made By: sssccc
2,821
Posted By sssccc
I use ls -la as a matter of habit. LOL. However,...
I use ls -la as a matter of habit. LOL. However, it had no effect on my results.
2,821
Posted By sssccc
OK. I see the difference now. So, if I don't...
OK. I see the difference now.
So, if I don't expect and/or want to list any files starting with a ., I can safely omit the .*.txt and .*.prg parts. Right ?
2,821
Posted By sssccc
Thanks Don for the reply. If I put just a ;...
Thanks Don for the reply.

If I put just a ; after the first 2 lines, then it works like a charm. Here is my final version of the command:

for dir in $(find . -type d -name 'pro*'); do ls -l...
2,821
Posted By sssccc
Noted Don. I will provide OS/Shell for any future...
Noted Don. I will provide OS/Shell for any future posts. For now, I am using SunOS unix 5.10 Generic_150400-30 and shell is K Shell.

Your suggested code appears to be for use in a script file....
2,821
Posted By sssccc
Tried that. My Find does not support "path". ...
Tried that. My Find does not support "path".

>find . -path ./prog\* \( -iname "*.txt" -o -iname "*.prg" \)
find: bad option -path
find: [-H | -L] path-list predicate-list


Please use CODE...
2,821
Posted By sssccc
Find wild card directory and its files of some extensions
I want to use Find command to find directories that have certain name and them find files in that directory having only some extensions. So far, I have come up with this command to list directories...
1,840
Posted By sssccc
Thank you kshji. I took a shortcut and...
Thank you kshji.

I took a shortcut and placed the function in .profile itself. Like this:

ff()
{
find . -name $1
}

That seems to work. Do I need to create a separate file...
1,840
Posted By sssccc
Thanks RudiC for the reply. So, if I...
Thanks RudiC for the reply.

So, if I understand correctly, the $1 in this case does nothing. When I issue the command "ff x*", it is expanded as "find . $1 x*" where the system looks for any...
1,840
Posted By sssccc
Alias problem
Please forgive me if this is too stupid a question as I am fairly new to scripting.

I have an alias in my .profile (ksh) like this:
alias ff='find . -name $1'

The idea is to find all files...
6,737
Posted By sssccc
Thanks fubaya for the clarification. "ls -u"...
Thanks fubaya for the clarification.
"ls -u" worked for me as the numbers in the files I am working with have a four digit number that will always stay as four digit. So, I will not have any issues...
6,737
Posted By sssccc
Absolutely. That did it. Thanks a lot....... ...
Absolutely. That did it. Thanks a lot.......

Folks here are real gurus. They have answers to just about anything.
For someone like me who is totally new to Unix, this forum is a bliss.
6,737
Posted By sssccc
Store highest filename from ls command to a variable
I am sure it has been answered in some form or the other in this forum but trust me I have spent last couple of hours looking for an answer but can't find it.

I want to do a very simple operation...
8,186
Posted By sssccc
Excellent. Got it working the way I wanted. I put...
Excellent. Got it working the way I wanted. I put the alias al in .cshrc file as suggested and then 3 more aliases using the $target as the dynamic value. Here is what I did:

alias al 'set...
8,186
Posted By sssccc
Curleb: I would prefer to leave it 'sticky'...
Curleb: I would prefer to leave it 'sticky' rather than typing the filename every time I run the alias. The ratio of running alias to defining alias is 50:1. So, I will save myself typing the...
8,186
Posted By sssccc
Thanks curleb. That link provided some very...
Thanks curleb. That link provided some very useful info for me. However, let me redefine what I am trying to accomplish.

1. Set up a c shell script named (let us say al) with the following three...
8,186
Posted By sssccc
Do you want me to post my .cshrc file here ?
Do you want me to post my .cshrc file here ?
8,186
Posted By sssccc
Target file ? You mean myfile.log etc. Yes, I do...
Target file ? You mean myfile.log etc. Yes, I do have permission to those files.

Putting these aliases in .cshrc file is a great suggestion and it should work as I do have whole bunch of aliases...
8,186
Posted By sssccc
I don't have problem executing other scripts....
I don't have problem executing other scripts. Only the alias command is not working.

Setting it on login kinda defeats the purpose. This is a script that I want to run on the fly passing a...
8,186
Posted By sssccc
Tried that. Still no go. Same message.
Tried that. Still no go. Same message.
8,186
Posted By sssccc
Tried that. I get the message "Permission...
Tried that. I get the message "Permission Denied".

. ./al [Enter]
/idn/app/bin/.: Permission Denied.

I don't know what that means.
8,186
Posted By sssccc
A very simple script, but alias won't work
I am new to unix and therefore I did a lot of reading before posting. So please, if this has been answered before, forgive me for re-posting and point me to the right place for the answer. I have...
5,749
Posted By sssccc
In am using PC running Windows XP SP2 emulating a...
In am using PC running Windows XP SP2 emulating a terminal and connecting to my company's unix system via Telnet.

I checked the $TERM variable and it appears to have been set to "ansi".

I am...
5,749
Posted By sssccc
Methyl. Thanks a lot for very detailed...
Methyl.

Thanks a lot for very detailed reply. That worked.

However, would you know by any chance why the syntax in my first post did not work.
5,749
Posted By sssccc
Anyone else can help me out here. I would really...
Anyone else can help me out here. I would really like to customize Vi so I don't have to ftp files back and forth to windows for editing.

Thanks.
5,749
Posted By sssccc
Thanks Methyl for the reply. I tried without the...
Thanks Methyl for the reply. I tried without the colon, but still no go. This is what I get when I issue :map command in Vi Editor:

:map
up ^[[A k
down ^[[B j
left ^[[D h...
Showing results 1 to 25 of 26

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