Search Results

Search: Posts Made By: kotsos13
1,003
Posted By kotsos13
Thank you very much both of you for the help!
Thank you very much both of you for the help!
1,003
Posted By kotsos13
Awk help
I want to display the login and the name of the user with UID from 10-15.
I put this code but i can't see any result!
cat /etc/passwd|awk '{if($3>=10 && $3<=15) {print $1,$6}}'
1,747
Posted By kotsos13
As far as i know he will teach us the awk command...
As far as i know he will teach us the awk command on the next lesson!I may not know how to use the awk but as i see now this command seems a lot helpful!
2,265
Posted By kotsos13
Yes...
Yes...
2,265
Posted By kotsos13
Nice command but i have to do it only as my code...
Nice command but i have to do it only as my code above :D
2,265
Posted By kotsos13
I want to print on the screen the names of files...
I want to print on the screen the names of files in the HOME of the user that the size is greater than or equal the second argument and less than or equal to the third argument. Eventually it will be...
2,265
Posted By kotsos13
What's wrong on this script?
I get this error on these lines when i run this script:"[: `)' expected,found 20
What am i doing wrong?

for i in /home;do

file2=`ls -s $i`

if [ \( $file2 -ge $2 \) -a \( $file2 -le $3 \)...
1,747
Posted By kotsos13
Thank you very much for your help!I will try to...
Thank you very much for your help!I will try to learn it now!And you are right!The person who wrote this is completely insane:D!In three hours he taught us the grep,sort,tr and sed command(not...
1,747
Posted By kotsos13
Code explanation?
I need someone to tell me how exactly works the following code αfter /etc/passwd :eek::
cat /etc/passwd|grep "^[^:][^:][^:][^:]:"|sed '1,$s/^\([^:]*\):[^:]*:\([^:]*\):.*$/ \1 \2 /'|sort -nrk3 -t:I...
1,447
Posted By kotsos13
Thank you very much for the help!
Thank you very much for the help!
1,447
Posted By kotsos13
Need some explanations in commands
I want to know what's the meaning of the following commands

first eg
^[^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*$What does exactly the *a,*e,*i ...*$ means in this command?
I...
3,991
Posted By kotsos13
Thank you!It worked now!You saved my day!
Thank you!It worked now!You saved my day!
3,991
Posted By kotsos13
The $1 and $2 are integers! And i get this ...
The $1 and $2 are integers!

And i get this
http://i41.tinypic.com/nvwjk4.jpg
3,991
Posted By kotsos13
Integer expression expected error in script
When i run the following code i get an error that says Integer expression expected!
How do i fix this?

#!/bin/bash

if [ $1 -gt $2 ];then
echo "wrong"
exit 1

fi

if [ $1...
804
Posted By kotsos13
It's on the above picture!
It's on the above picture!
804
Posted By kotsos13
Script Help
I want to make the following script:

Write script, which can accept two arguments from the command line. The arguments will be
integers and the first argument is smaller than the second. If the...
952
Posted By kotsos13
Ok!Thanks for the help!Problem fixed!
Ok!Thanks for the help!Problem fixed!
952
Posted By kotsos13
Script Problem
Every time i run this script i get an error that says ":[too many arguments"
Why is this happening?

http://i43.tinypic.com/20tngpt.jpg
Showing results 1 to 18 of 18

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