Search Results

Search: Posts Made By: iago
3,946
Posted By iago
counting words then amending to a file
i want to count the number of words in a file and then redirect this to a file


echo 'total number of words=' wc -users>file


THis isnt working, anyone any ideas.
1,629
Posted By iago
yeah i dont think im getting the right one. i...
yeah i dont think im getting the right one. i want the one ps with no options gives u but for all the users. my trouble then is going to be printing there real name along with there processes, anyone...
1,629
Posted By iago
users and there processes
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running...
1,632
Posted By iago
yeah thats what i did thanks man
yeah thats what i did thanks man
1,632
Posted By iago
can someone tell me what im doing wrong here
Got It Workng Woohoo

Edited
2,659
Posted By iago
Permissions - passing a file as the argument
this is the only way i can think of to do this but there must be a better way or else im gonna end up writing 200 lines of copy and pasting code.


echo ' READ WRITE EXECUTE'


own=$(ls -al $1...
1,889
Posted By iago
removing a line from a file and then placing into another file
grep `whoami` $1 >> file

this lets me take out the username from a file and then i move it to a file but i need it to do one step at a time because i want the occurences to be numbered like
...
2,218
Posted By iago
learning unix online, then i send off scripts to...
learning unix online, then i send off scripts to be corrected. and they said not to use awk or sed
1,757
Posted By iago
can it be done without using sed or awk?
can it be done without using sed or awk?
2,218
Posted By iago
zsh 4.3.4% what does that do? i cant use...
zsh 4.3.4%

what does that do? i cant use sed or awk
2,218
Posted By iago
cant get this to work
whoami | grep < $1 | echo $1

trying to write a script that finds out who the user is and then takes occurences of that username from a file that is passed as an argument and then displays it
1,757
Posted By iago
What do you want to insert? I want to insert...
What do you want to insert?
I want to insert the first argument, which will be a line of text

Where do you want to insert it?
In the middle of the second argument which is a text file


What...
1,757
Posted By iago
stuck and confused
#!/bin/bash
echo $1 | cat - $2 >> /tmp/$$ && mv /tmp/$$ $2

im trying to get the first argument to go in the middle of the second argument which is a file, anyone any ideas. i have only managed to...
1,615
Posted By iago
not allowed use awk or sed
not allowed use awk or sed
1,615
Posted By iago
yeah i know but i want to save the output to the...
yeah i know but i want to save the output to the file of the second argument? any ideas
1,615
Posted By iago
what am i doing wrong
#!/bin/bash
$1 | cat >> - $2

I am trying to write a script that takes that takes two arguments. The first being a line of text, the second being a file you create. The script should take the...
1,377
Posted By iago
Ignore Duplicate Post
Duplicate Post
2,222
Posted By iago
file wont execute
sh filename

and it gives me an error saying the file doesnt exist but it definately does.
6,887
Posted By iago
passing strings as arguments
Is it possible to pass a string as an argument from the command line?

I know I can pass a word in but can I put a line of text in with spaces and fullstops or do I just put it in brackets or...
2,230
Posted By iago
Arguments
Ok so i had to create a file and put some random text into it which i did.

THen u make a script which takes 2 arguments.

The first being a line of text, the second being your newly created...
Showing results 1 to 20 of 20

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