10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a unix directory and under which the below set of files(Years will change) will be there
#####################################
TEST_DETAIL_HCR_ABC2015_T01152015.csv
TEST_DETAIL_HCR_ABC2014_T01152015.csv
TEST_DETAIL_HCA_ABC2013_T01152015.csv
I need to assign years to... (2 Replies)
Discussion started by: weknowd
2 Replies
2. Solaris
I am into
cd /home/work/amey/history-*/
Under amey I have directories
history, history-1, history-2 and under history-2 I have got 2 files 3 and 2.
When I run the find command I get the below o/p.
find /home/work/amey/history-*/. -name . -o -prune -type f
/home/work/amey/history-1/.... (1 Reply)
Discussion started by: ameyrk
1 Replies
3. UNIX for Dummies Questions & Answers
I need to find a file that has been modified in last 3-4 hours. mtime tells us about file modified in n days. Is there any way I can check for hours or minutes file modified or created before. (5 Replies)
Discussion started by: ankush_mehra
5 Replies
4. Shell Programming and Scripting
I have a script to fix permissions which is made up of blocks like:
FS_ROOT=/home/shared/Photos
FS_EXCLUDE=( \( -path */.webviews -o -path */.thumbnails \) -prune -o )
find $FS_ROOT ${FS_EXCLUDE} -type d -not -perm 2770 -exec chmod 2770 "{}" \;
That fragment works as expected, but no matter... (3 Replies)
Discussion started by: mij
3 Replies
5. Shell Programming and Scripting
How can I find the biggest file in a branch?
I tried
find / \*.\* | xargs du | sort -n 1,1 | head 1
but shell do nothings :(
---------- Post updated at 03:07 PM ---------- Previous update was at 02:41 PM ----------
Solved:
find / -name \*.\* | xargs du | sort -nr | head -n 1 (0 Replies)
Discussion started by: Guccio
0 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
8. Shell Programming and Scripting
This one took HOURS and HOURS of my life. Hopefully this post will save someone the same grief.
I am using "-regex" with "find" via a variable. If I echo the command that is constructed, it looks OK. When I paste the echoed text it to the command line it runs fine. But inside the script it... (1 Reply)
Discussion started by: jjminkle
1 Replies
9. UNIX for Advanced & Expert Users
System Parameters:
maximum number of processes = 2048
Network parameters:
ipqmaxlen - 512
rfc1323 - 1
sb_max - 1310720 (2*655360)
tcp_recvspace - 65536
tcp_sendspace - 65536
Udp_recvspace - 655360
Udp_sendspace 65536 (1 Reply)
Discussion started by: R00tSc0rpi0n
1 Replies
10. Shell Programming and Scripting
I have a shell script and i pass 3 parameters to it.
Just give you an example
test.sh a=y/n b=y/n c=y/n
Pass y/n to a, b and c then it will decide what to do.
test.sh a=y b=n c=n
What i would like to do is rather then passing 3 parameter just pass a=y (only a is doing something like... (2 Replies)
Discussion started by: J_ang
2 Replies