10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Experts,
I've used vi editor to write this script, provided permission, but I invoke it
it is prompting end-of-file errors.. I'm not sure what is causing that error..
would like some help.. I've attached details..
perseus.gasleak(/tmp/v_tst)% ls -l f2.sh
-rwxr-xr-x 1 gasleak ... (13 Replies)
Discussion started by: V1l1h1
13 Replies
2. Shell Programming and Scripting
Hi All,
I'm just wondering how can i determined if there's a file in directory and put it in a logs?
dir="/home/test/"
Please advise,
Thanks,
Use code tags, thanks. (1 Reply)
Discussion started by: nikki1200
1 Replies
3. Shell Programming and Scripting
I am using AIX 6.1 and would like to use a one line command to determine the age of a file in days. I would like to look at a specific file.
I would like to use the command to run on a remote server (AIX 6.1) to return the age of a specific file in days. So if the file is 42 days old I would... (2 Replies)
Discussion started by: oldman2
2 Replies
4. Shell Programming and Scripting
A regular ebcdic mainframe tape usually contains header information the 1st three blocks of the tape. The header information tells the computer/user more information about what is on tape. The header info is 240 bytes in length at 80 bytes each header. The 1st block/header is volume name or... (1 Reply)
Discussion started by: Linux-wannabe
1 Replies
5. Shell Programming and Scripting
Is there a simple command to find or check if a file has been modified within the last minute? The mtime parameter from find cmd only allow days.
I am trying to avoid timestamp parsing and do some sort of comparison as I'm real beginner at scripts. If this is the only way, any help is greatly... (3 Replies)
Discussion started by: ystee
3 Replies
6. Shell Programming and Scripting
Hello,
I am on a mission to determine the user of file. I have used the ls -l command but it displays permission, link, user, group, etc, but I just want to display just the name of user of a specified file.
Many thanks (4 Replies)
Discussion started by: unibboy
4 Replies
7. UNIX for Dummies Questions & Answers
Hey Guys,
I am trying to figure out what is chewing up a bunch of CPU on our SunFire V120 Boxes and I am having a little trouble drilling down the source.
When I check the CPU usage it displays tail & cat as the top two processes
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU... (1 Reply)
Discussion started by: Jerrad
1 Replies
8. UNIX for Dummies Questions & Answers
Hello,
Can someone please tell me which command to use to determine the size of a file? When I log in to my shell account, I do this
$>% ls -als
total 632
8 -rw-r--r-- 1 user01 devgrp1 1558 Jul 30 23:25 .kshrc
What is "1158"? Bytes? Kilobytes?
I apologize if my... (8 Replies)
Discussion started by: alan
8 Replies
9. UNIX for Dummies Questions & Answers
I'm writing a script that takes a filename as an argument, which determines the "file type" of the file. I want to know if there is any command I can use to determine if a file is ASCII type, thanks all for giving a help. (11 Replies)
Discussion started by: popo
11 Replies
10. UNIX for Advanced & Expert Users
I need to know what the best way, if possible in a perl or shell script, to determine if a file is open by a process, and if it is open for writing.
While I would rather use a perl or shell script, if I have to use C, that would be ok.
Thanks. (2 Replies)
Discussion started by: derrikw2
2 Replies