Search Results

Search: Posts Made By: nguda
14,073
Posted By nguda
This is not "for" problem... I don't think when...
This is not "for" problem...
I don't think when we use for loop we have to do the explicit couting again.... is is not a while loop...
14,073
Posted By nguda
Nope..., it is still not working...
Nope..., it is still not working...
14,073
Posted By nguda
cp: cannot access
Hi All,
I have the following script, where I am copying a list of files from one location to another location. The permissions, owners are fine. Why i am getting cp: cannot access error when i run...
1,695
Posted By nguda
Thanks for your conern... I am going to...
Thanks for your conern...

I am going to write a script that checks the file time stamp and compares this to the current time. If the difference <= 5 minutes I will check the contents of the file....
1,695
Posted By nguda
Getting the last line
Hi,

I have a file that gets a line added to the end of it frequently by a program. How can I get that last line into a line variable.

Any help is appreciated.

Thanks.
19,325
Posted By nguda
select count(*) into a variable
Hi,
Could anybody help me how can I assign the value of "select count(*) from table1" to a variable in an unix shell script. Thanks.
2
1,675
Posted By nguda
Thanks a lot.
Thank you. It works.
2
1,675
Posted By nguda
Error
ls -Flt | awk '{print $5, $9}' | while read filesize
do
echo $filesize | cut -d ' ' -f1 | read size
if [ $size -ge 204800 ] ...
5,135
Posted By nguda
etc/passwd
Can anyone explain the second and third fields in /etc/passwd.
Thanks.
3,114
Posted By nguda
echo ?????
I know..listing the files/directory names with 5 characters.
4,494
Posted By nguda
Thanks very much. I tried ls -Flt dir|...
Thanks very much.

I tried

ls -Flt dir| awk '{print $9}' | head -5

but your command is most straight forward.
4,494
Posted By nguda
Names would be fine.
Names would be fine.
4,494
Posted By nguda
These are kind of log files and I need the last 5...
These are kind of log files and I need the last 5 files.
4,494
Posted By nguda
last 5 files
Hi,
Is there a way that we can get the last files (ex, recent 5 files) that came into a directory. Thanks.
1,993
Posted By nguda
This is HP unix 10.2.
This is HP unix 10.2.
1,993
Posted By nguda
Log out
Hi,
How can I kill/forcibly log off the users from the unix system except one user who will be using the start up script.
Thanks, NG
19,830
Posted By nguda
ls -Flt `grep -lF 'bcapp'...
ls -Flt `grep -lF 'bcapp' $HOME/STAT/sys/asr_spool/in/*` | awk '{print $6, $7, $8}'

WORKS!!!!!!!!!!!!!!!!!!

You guys are great..!
Thanks a lot.
19,830
Posted By nguda
I am trying to read the timestamp only. When...
I am trying to read the timestamp only.

When I try to run

l -t `grep -lF 'abc' $HOME/bin/shells/*` | awk '{print $6,$7,$8}' command, I am just getting empty lines...
19,830
Posted By nguda
Sorry I do not understand. Do you think I can...
Sorry I do not understand.
Do you think I can get the latest file on the top of the list with the above command? (or if we modify it)?

Thanks for the help.
19,830
Posted By nguda
Thanks for the reply. I am using the same...
Thanks for the reply.
I am using the same command and it is funny that even though I use ls -Fl, the list is not in that order. I am trying to get the list with latest file top in the list. ls -Fl...
19,830
Posted By nguda
Find command to get the timestamps
I want to have the timestamps of the files containing a specific string in them.
I have tried using different combinations of find command and grep and ls but not giving the desired output.

find...
7
5,042
Posted By nguda
Hi Kemisola, I tried your script. It is not...
Hi Kemisola,
I tried your script. It is not giving any errors and at the same time I could not see the output. I tried redirecting the output to another file and it did not work either. Where and...
7
5,042
Posted By nguda
Thank you very much for your concern. Really...
Thank you very much for your concern. Really appreciate it.
7
5,042
Posted By nguda
It is actually called, system integration file....
It is actually called, system integration file. In unix, we have SIF files that we receive from other systems.

The format looks like this...,

XYZHEADER 20020503
...
7
5,042
Posted By nguda
Parse
Does anybody know how do we parse a file (ex. SIF file) into a delimited text file in UNIX?
Showing results 1 to 25 of 25

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