Search Results

Search: Posts Made By: musicmancanora4
6,545
Posted By musicmancanora4
Hi thanks i forgot to do that it now works :) ...
Hi thanks i forgot to do that it now works :)

Just another quick question
to make my code more portable im declaring functions like this at the start my program

eg

READ=/usr/bin/read

i...
6,545
Posted By musicmancanora4
Hi thanks for your fast response is there a way...
Hi thanks for your fast response is there a way where i dont have to insert ""?
6,545
Posted By musicmancanora4
find grep whitespace problem
Hey guys iv written a basic function to ask for input location to find then grep a certain string in the file at the location of the find.
For some reason it finds the file with the certain string...
5,021
Posted By musicmancanora4
base_cmd=`basename /home/m/mmatrik/*/` i...
base_cmd=`basename /home/m/mmatrik/*/`

i tried using $HOME/*/ It seems to work ok however it does not look for hidden files as well how would i get it to look at hidden files also?
5,021
Posted By musicmancanora4
disk usage and home directory
Hi guys just a quick question how could i come up with a way so i wont have to hard code my home directory into the base_cmd directory?

I only want to list files and directories but no sub...
6,930
Posted By musicmancanora4
ok ill try it now and ill let you know what i get...
ok ill try it now and ill let you know what i get thanks for assisting
6,930
Posted By musicmancanora4
#!/bin/sh fnGetUserQuota () { ...
#!/bin/sh


fnGetUserQuota ()
{
#Below is a variable declaring the threshold limit for the quota

limit=24

#prints quota's on all file systems then greps the...
6,930
Posted By musicmancanora4
/home/j/jdongs/*/: No such file or directory ...
/home/j/jdongs/*/: No such file or directory

The 10 biggest directories are:
size Directory
960 k ./dir1
928 k ./.tin
808 k ./files

it just prints...
6,930
Posted By musicmancanora4
still have problem
i do this and i get the expected correct result but i still get an error saying no such file or directory found

a=`ls -1 -d /home/j/jdongs/*/|while read line; do basename $line;done`

not sure...
6,930
Posted By musicmancanora4
Well i took the -s sand -e and i get the same ...
Well i took the -s sand -e and i get the same

i just want to cut the /home/j/john and print the directory names in that path

so rather then

/home/j/john/directory/...
6,930
Posted By musicmancanora4
basename problem
Hi guys if i do

a=`basename -e -s /home/j/john/*`

du -k -h $a | sort -nr | head -10

why when i run the script does it work but also say usage basename string [suffix]

any ideas thanks
1,687
Posted By musicmancanora4
help with bourne script
Hey guys not sure why but when i execute the script i get the correct result but then it says command not found not sure why can anyone see anything wrong with my code below?

I just want to print...
Showing results 1 to 12 of 12

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