Search Results

Search: Posts Made By: pure_jax
1,820
Posted By pure_jax
According to my colleague its the * that caused...
According to my colleague its the * that caused the problem. Apparently it doesn't know what directory to look in if you use du -sk * so I had to use du -sk ./*

Its a HPUX file system
1,820
Posted By pure_jax
Excellent I used the ${ENTRY#*/} and it works not...
Excellent I used the ${ENTRY#*/} and it works not 100% how though?

It now looks like: -
du -sk ./* | sort -rn | head | \
while read SIZE ENTRY
do
# if size > 1048576 then it is at least 1 GB...
1,820
Posted By pure_jax
Help removing output from .sh script
I have the following script

#!/bin/ksh
# **********************************************************************
#
# System: xxxx
#
# Filename: List_Largest_Files.sh
#
# Purpose: ...
12,385
Posted By pure_jax
Excellent the code works when I put it into a...
Excellent the code works when I put it into a shell script only a couple of problems.

1) I didn't know how to get a log of the files changed unless I ran the command below
2) All the .py files it...
12,385
Posted By pure_jax
Ah that could be why I am on HPUX
Ah that could be why I am on HPUX
12,385
Posted By pure_jax
find . -type f -name "*.py" -exec sed -i...
find . -type f -name "*.py" -exec sed -i 's/Sept_2012/Oct_2012/g' {} \;
Produced the following error: -

Usage: sed [-n] [-e script] [-f source_file] [file...]
sed: illegal option -- i
12,385
Posted By pure_jax
Unfortunately this didn't work either find ....
Unfortunately this didn't work either
find . -type f -name ".*py" -exec sed -i 's/sep_2012/Oct_2012/g' {} \;
12,385
Posted By pure_jax
Actually I figured out the find command just need...
Actually I figured out the find command just need to know how to replace now?
find . -name "*.py" -exec grep "Oct_2012" {} \;

---------- Post updated at 01:24 PM ---------- Previous update was at...
12,385
Posted By pure_jax
HPUX find string in directory and filetype and replace string
Hi,

Here's my dilemma.

I need to replace the string Sept_2012 to Oct_2012 in all *config.py files within the current directory and below directories

Is this possible?

Also I am trying to...
12,929
Posted By pure_jax
I thought this may be the case however without...
I thought this may be the case however without the "!" it returns search results from other directories within this directory ie /dataload/archivelogs/archive
12,929
Posted By pure_jax
HPUX move files older than 30 days
Hello,

I have a script which finds files in a directory that are older than 30 days and moves them to the specified directory.

The problem is I don't know why it works the way it does?

Code:...
3,883
Posted By pure_jax
Unix Certification
Hi All, I'm need some advice.

I have mainly used solaris/hp-ux but would like some sort of basic certification to prove i can do what i do. I eventually need to move on to shell scripting but...
4,644
Posted By pure_jax
List Contents of Drive by size
I am having difficulty listing the contents of a specific disk drive including hidden files and folders by size on disk.

Its been a while since i have used dos and batch files in windows as am...
37,763
Posted By pure_jax
Many thanks sb008 Worked a charm :-)
Many thanks sb008

Worked a charm :-)
37,763
Posted By pure_jax
du -sh Command
Hi all i am trying to list contents of a directory in summarised user readable form from file size highest to lowest?

I have used du -k * | sort -rn

however this provides the output in KB

if...
Showing results 1 to 15 of 15

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