Search Results

Search: Posts Made By: april
1,443
Posted By april
Hello apmcd47, Thank you for your post. ...
Hello apmcd47,
Thank you for your post.

All the files in the directory start with mRefresh_
The timestamp doesn't matter to me in my script.
The order doesn't matter to me because I just need...
1,443
Posted By april
I wonder if I look at this a little differently. ...
I wonder if I look at this a little differently.

If I know the name of the last .x file, does it make it easier if I look for all the file names created after that last .x file?

---------- Post...
1,443
Posted By april
Well, here is what I got when I typed in uname -a...
Well, here is what I got when I typed in uname -a
Linux (server name) 3.0.101-108.52-default #1 SMP Tue May 29 19:42:53 UTC 2018 (80e6815) x86_64 x86_64 x86_64 GNU/Linux

As far as the ls version,...
1,443
Posted By april
Hello RudiC, I tried to run the command you...
Hello RudiC,
I tried to run the command you posted

for x in $(ls -r A[0-9]* | awk '/x$/ {exit} 1'); do echo $x; done

But I got the following error:
/bin/ls: cannot access A[0-9]*: No such...
1,443
Posted By april
How To Retreive Files With a Special Condition?
Everyday I have to get a list of files in a directory with a special condition and feed this list to a for loop to be processed. Since I do not use Unix all the time, it is tricky for me to get that...
1,292
Posted By april
I don't use Unix a lot so I was just wondering if...
I don't use Unix a lot so I was just wondering if it can be done.

I tried this and it failed miserably.

m=${`ls -1| tail -n 1`%.abc}
1,292
Posted By april
Combine 2 Commands
Hello,
I have the following code. I wonder if it can be combined into 1 command.

y=`ls -1| tail -n 1`
m=${y%.abc}


Thank you.
2,484
Posted By april
When I was started testing, the grep ... was put...
When I was started testing, the grep ... was put after the done. As a result, I only saw the grep results without the filenames so it appeared the filenames were "missing". I added the >&1 to make...
2,484
Posted By april
I want to thank you all again for the replies. ...
I want to thank you all again for the replies. When I first read your comments about the standout output issues, I really didn't understand what you were talking about. Today I had to use the grep...
2,484
Posted By april
I tried both methods from Robin and they both...
I tried both methods from Robin and they both worked. I see the file names and the grep results following each file name.

I tried Don's suggestion echo "folder1/folder2 files in $targz...". That...
2,484
Posted By april
Piping commands using xargs
Thank you, Robin.

I tried both examples you provided and they both list the folder content. The only issue is both examples only print out the results without displaying the input file name so I...
2,484
Posted By april
Piping commands using xargs
Need help in piping commands using xargs

I have several .tar.gz files that I need to list the folder content in a subdirectory.
For example,
a.tar.gz
b.tar.gz
c.tar.gz

The following...
Forum: Solaris 12-06-2009
11,152
Posted By april
Spawn Not Found
I need to run the spawn command but when I typed it in, I got
"ksh: spawn: not found".

So, I downloaded spawn-fcgi but it required to be compiled first. The compile failed when I tried it. I...
2,003
Posted By april
How to Parse a Prompt?
On the command, when I type in certain commands, they will display a prompt waiting for some input. When I type in the requested input, it will display the info I requested.

For example, if I...
1,514
Posted By april
Great! That works. Thanks a bunch.
Great! That works. Thanks a bunch.
1,514
Posted By april
Grep Help
I need to grep for any word that starts with a string on every line. The expression I use keeps returning words that have the string. I don't want to use ^ in the expression because it only...
11,253
Posted By april
Inherit Group File Permission
In our file system, the SGID for a directory is set right now. Any new files created in this directory will automatically be assigned the same group from the parent directory.

Is there a way to...
61,083
Posted By april
Thanks. That works.
Thanks. That works.
61,083
Posted By april
If statement - How to write a null statement
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.

How do I write the "do nothing" statement in the following example?

Example:
...
7,805
Posted By april
Yes, I know that's simple. I know how to get the...
Yes, I know that's simple. I know how to get the name once I have a user id. My problem is I need to somehow scan thru the comma delimited user id list and retrieve one id at a time so that I can...
7,805
Posted By april
Yup, that works. Now that I have the report,...
Yup, that works.

Now that I have the report, my boss added a new requirement. He wants the user ID and the user's real name on the same line.

Any idea?

Thanks.
7,805
Posted By april
How to process the user id list in /etc/group?
To all,
I need to find a group in /etc/group and if found, I need to list out all the login ids for that group - one login id per line.

To find the list of user login ids for group X, I probably...
32,000
Posted By april
Check FTP Status
To all,
I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same...
Showing results 1 to 23 of 23

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