Search Results

Search: Posts Made By: ciroredz
3,986
Posted By ciroredz
this is the output i was looking for!!!! just...
this is the output i was looking for!!!!
just need to add a bracket on ech number and i do not know how to do it
[ciro.ruggiero@unix ~]$ grep $USER xx | cat -n

and this is part of the output:
...
3,986
Posted By ciroredz
how do i put the brackets against the number ...
how do i put the brackets against the number
eg:
1)
2)
6,442
Posted By ciroredz
thnx a lot it works perfectly!!!!!
thnx a lot it works perfectly!!!!!
6,442
Posted By ciroredz
Kool its true!!!!!! and look at this now...
Kool its true!!!!!!
and look at this now please...


file=$1
lines=$(wc -l < $1)
half=expr $lines / 2
(echo "${half}a"; echo '8888'; echo '.'; echo 'wq') | ed -s $1

why its not writing the...
6,442
Posted By ciroredz
thnx a lot m8 u great! look what im trying to...
thnx a lot m8 u great!
look what im trying to do:

#!bin/bash
file=$1
read myVar
(echo '0a'; echo '$myVar'; echo '.'; echo 'wq') | ed -s $1

i want to create a script which always put a...
6,442
Posted By ciroredz
add a string in the middle of the file
i want to add a string in a very top of a file without using VI or SED or AWK
this is what ive done:

(echo '0a'; echo 'LINE OF TEXT'; echo '.'; echo 'wq') | ed -s myfile

to add astrng...
3,986
Posted By ciroredz
I@M WORKING ON IT ON MY OWN!!!!!!! this is...
I@M WORKING ON IT ON MY OWN!!!!!!!

this is what iv done and it looks good

[ciro.ruggiero@unix ~]$ grep $USER xx | cat -n

and this is part of the output:

1 USER=ciro.ruggiero
...
6,637
Posted By ciroredz
Sorry m8........my mistake....it...
Sorry m8........my mistake....it works!!!!!!!!!!!!!!!!
thnx a lot.
1 more question
Id like to show next to the Group the name of the group which the file belngs.
How do i do that?
6,637
Posted By ciroredz
THNX m8 thats very good code...i've gone throu`'...
THNX m8 thats very good code...i've gone throu`' it.
One prob...it's not reading the permission of any file i pass in the commands.

EG. sh file1 file2
i think it should read the permission of...
3,986
Posted By ciroredz
been told not to use sed nither awk...that would...
been told not to use sed nither awk...that would have been easy!!!
3,986
Posted By ciroredz
shell script
if i do this 5 times
env >> xx
env >> xx
env >> xx
env >> xx
env >> xx
il will a file called XX with the env redirected into it 5 times


i need to create a script that takes 1 argument...
6,637
Posted By ciroredz
THNX alot....u quite good with this staff!!!!! ...
THNX alot....u quite good with this staff!!!!!
thats way to much complicate for me...thare isn t another way to do it?
like using if statements and test?
6,637
Posted By ciroredz
test and if condition
Guys look at this:
i have to write a script that takes a file as an argument. The script should be able to determine what permissions the owner, group and everybody has for the file passed in. The...
Showing results 1 to 13 of 13

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