10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello guys,
Please i need to know the biggest files in my directory let's say$
>du -h | egrep 'M|G|G'
195M ./TMP
3.6M ./TP_DEC2012
146G .
But here the result it's giving me the biggest directory in the path.
Actually i want to know the biggest file in 146G .
Can anyone... (6 Replies)
Discussion started by: gillesi
6 Replies
2. UNIX for Dummies Questions & Answers
help me (1 Reply)
Discussion started by: sonu pandey
1 Replies
3. Shell Programming and Scripting
Hi All
How to answer the below interview question..
With a path and filename of "/mydir1/mydir2/mydir3/myfilenane.dat" write a UNIX script to display the filename (2 Replies)
Discussion started by: shumail
2 Replies
4. HP-UX
Hi,
The blow code does not yeild any output.
find . -name "*.jar" -o -name "*.ksh" -o -name "*.properties" -name "*.war" -o -name "*.ear" -o -name "*.sh" -o -name "*.cfg" -exec ls -l {} \;
I wish to print the filename filesize filedate in HP-UX.
Can anyone help ? (9 Replies)
Discussion started by: mohtashims
9 Replies
5. UNIX for Advanced & Expert Users
Hi all
Thanks in advance...........
Please help me for this issue............
I have a file it has 11 records . I used the command like ....
>$ wc -l file
11 file
I'm getting output like 11 file (no.of records along with filename)
here my requirement is, I want to display only... (3 Replies)
Discussion started by: ksrivani
3 Replies
6. Shell Programming and Scripting
Suppose there are 3 files inside a directory, then i need to use display command which will display, the file name and its size. Is it possible?
The output should llook like this only
file1 1248
file2 3024
file3 3056 (6 Replies)
Discussion started by: sundaresanv
6 Replies
7. UNIX for Dummies Questions & Answers
Hi i am currently using below command in shell script and calling it from cron job.
This is to take daily backup with the date as suffix to the file.When i try i unable to get the date suffixed to the backup file.
Please help me as to wt's wrong in this or how to get the date added to the... (5 Replies)
Discussion started by: abhi_n123
5 Replies
8. UNIX for Dummies Questions & Answers
I would like to display the last 8 characters of the filenames for filenames of different lengths.
I can delete the last 8 characters with sed but dont know how to only show the last 8 characters.
The filenames are something like;
afxH340800340000
afxH30800340021
afxR3080034002122
I... (3 Replies)
Discussion started by: Beanz
3 Replies
9. Shell Programming and Scripting
Hi buddies,
I have a doubt. I want to display filename with date in the following format.Is there any way to do this. Kindly give me the solution.
I want to display the result in the following manner.
test1.txt 03/28/2008
testlog.log 02/20/2008
Please let me know one solution how to do... (1 Reply)
Discussion started by: pstanand
1 Replies
10. UNIX for Dummies Questions & Answers
I'm just learning UNIX and I'm trying to do the following:
Write a script called details.bash that, for each file in the working directory, prints the filename, the # of lines, and the # of words to to some output file, like this:
filename1 73 431
filename2 5 21
It's probably a stupid... (1 Reply)
Discussion started by: asianmike
1 Replies