Search Results

Search: Posts Made By: olimiles
2,792
Posted By olimiles
Thanks, works a treat. Oliver
Thanks, works a treat.

Oliver
8,447
Posted By olimiles
Apologies, just wasen't sure which forum was...
Apologies, just wasen't sure which forum was appropriate, and also which one receives more attention.

Again, apologies

Oliver
2,792
Posted By olimiles
Sorting files in a directory
Hi guys,

Probably an easy one, but how do you sort a directory so that the files come first, then subdirectories?

ie ./dir1 contains

file 1
subdir 1
file 2

i need it to become

file 1...
8,447
Posted By olimiles
Sorting files in a directory
Hi guys,

Probably an easy one, but how do you sort a directory so that the files come first, then subdirectories?

ie ./dir1 has

file 1
subdir 1
file 2

i need it to become

file 1...
7,215
Posted By olimiles
Excellent, just what i was looking for! Much...
Excellent, just what i was looking for!

Much appreciated

Oliver
7,215
Posted By olimiles
want the current directory without the absolute path
Hi guys

I'm trying to move an empty directory to the $TRASH directory. Say the directory i have is ./hello/hello1/hello2 and i'm in hello2, and i want hello2 moved.

this code:...
2,767
Posted By olimiles
Setting the right directory as non-empty
Hi guys,

I've been trying to get this part of my script to work for ages and now it's getting me annoyed!! So i thought a fresh group of eyes could see where i'm going wrong!

The idea is...
15,967
Posted By olimiles
Thats a really useful script Jack, saved me quite...
Thats a really useful script Jack, saved me quite a few times now ;)

Did you by any chance finish it so that it does all the directories stuff? ie the

rm -ir foldername
?

Thanks in...
2,867
Posted By olimiles
No problem! #!/bin/bash AUTHOR=`grep $USER...
No problem!

#!/bin/bash
AUTHOR=`grep $USER /etc/passwd | cut -d":" -f5`
DATE=`date '+%Y/%m/%d'`
read DESCRIPTION
cat << END
#!/bin/sh
####################################
## Program :...
2,867
Posted By olimiles
Hi jim Thanks for the interest, it was when...
Hi jim
Thanks for the interest, it was when starting a new file in vi to automatically insert the header, but i worked it out.

Thanks though

Oliver
2,867
Posted By olimiles
automatic header insertion
hi
Is there any way to automatically insert a predefined header into a file?
It would include the file name, author name, date and a description, the description entered on the first line of vi.
...
2,334
Posted By olimiles
Can you have var$1 ?
Hi all,

I'm trying to assign values to multiple variables, is there a way i can just change the number of the variable? ie

read$num=YES
write$num=NO
ex$num=YES

where the $num can be...
2,068
Posted By olimiles
Ok, so i got the CASE working, but it won't...
Ok, so i got the CASE working, but it won't accept the variable i put in!

Can someone tell me why it won't work? It just keeps falling to the catchall case, but if i use $2 instead it works fine?...
2,068
Posted By olimiles
To CASE or not to CASE, this is my question!
Hi

I'm trying to display the permissions, owner and group of a file. So far so good!

Script 4
#To determine the permissions, owner and group of a file
#Syntax: script4 filename

LINE=`ls...
1,737
Posted By olimiles
Thanks tmarikle! There is 1 problem for each...
Thanks tmarikle!
There is 1 problem for each code you gave me:

1st code:
I get a 'nawk does not exist' error, changing it to awk works but i'm thinking that the nawk adds the users name above...
1,737
Posted By olimiles
Outputting the processes of current users to a file
Hi guys,

I'm writing a script to display all the current logged on users and the processes they're running, output to a file. The output will look similar to this:

User1 (Real name not login...
5,229
Posted By olimiles
Thanks for the advice Thanks Apoorva, this...
Thanks for the advice

Thanks Apoorva, this works great! As for the first question, if the owner name isn't cut short with you, maybe the columns are too small on mine, is there any way to widen...
5,229
Posted By olimiles
Assigning file attributes to variables
Hi,

I'm trying to assign the permissions, owner and group of a file to seperate variables, but using

ls -l filename | awk '{print $1 "\t" $3 "\t" $4}'

gives the owner as tom.ja instead of...
Showing results 1 to 18 of 18

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