Search Results

Search: Posts Made By: nogame11
2,048
Posted By nogame11
well I cant get this to work, it never enters the...
well I cant get this to work, it never enters the first if because I need it to get the UserId line by line and not all at once.
Can anyboady help ???

---------- Post updated at 07:18 PM...
2,048
Posted By nogame11
well my sistem got all the test replaced by...
well my sistem got all the test replaced by xxxxxx and [][][][][][][] then I restarted it but it will not boot now so I installed a new one, i'm running this on a virtual machine. Thanks for every...
2,048
Posted By nogame11
Thanks ---------- Post updated 15-01-10 at...
Thanks

---------- Post updated 15-01-10 at 12:08 AM ---------- Previous update was 14-01-10 at 04:54 PM ----------

#! /bin/bash

infoUsers=$(cat /etc/passwd | cut -d':' -f1,3,6)
for...
2,048
Posted By nogame11
I know that I have to use crone but dont know...
I know that I have to use crone but dont know what commands to use in the script
thanks anyway
2,048
Posted By nogame11
Help With Script
I need a bash script that every day at 4 am verifys the home user directory for the next entrys

- Registers all user action in root/login/checl.log
- Excluds UID inferior then 500 and that...
2,546
Posted By nogame11
Well I really needed it to remove just the line...
Well I really needed it to remove just the line where the name is
2,546
Posted By nogame11
Search and remove in a text file
Need help whit a script where I have to input a name and then remove a line where that name is in a file

file ex:
001op;Name;Location;date
002op;Name;Location;date

and so on....
...
5,770
Posted By nogame11
Thank's i got it now
Thank's i got it now
5,770
Posted By nogame11
But the $Name is inputed by me!! The code is for...
But the $Name is inputed by me!! The code is for it to look for the name in the file funcionarios.csv and if it's there in output's the code

---------- Post updated at 05:15 PM ---------- Previous...
5,770
Posted By nogame11
It does but what I don't get is why $Name and...
It does but what I don't get is why $Name and $fun have the same value but the if does not work

the file funcionarios.csv has this

001op;Jose Antonio Borges;Rua de Cima, 7, Lisboa
002op;Silvia...
5,770
Posted By nogame11
yes ok
yes
ok
5,770
Posted By nogame11
Sorry it's $Name ---------- Post updated at...
Sorry it's $Name

---------- Post updated at 03:06 PM ---------- Previous update was at 03:05 PM ----------

But that's not the problem
5,770
Posted By nogame11
can anybody tell me why is code does not work ?? ...
can anybody tell me why is code does not work ??

it never enter's the if even when the name is right

echo "Name:"
read Name

prev=`cut -d ";" -f1-3 funcionarios.cvs`

for linha in "$prev"...
5,770
Posted By nogame11
this is what I need I type in a name that is...
this is what I need
I type in a name that is already in a file like

code;name;location;date
code;name;location;date

now I need to find the name I inputed in the file so I can get its code...
5,770
Posted By nogame11
Thanks but I can't get that to work
Thanks but I can't get that to work
5,770
Posted By nogame11
Help with cut and tail
Hey!!

I'm having a hard time getting this to work!

I need to input a name and compare that name to a file in the file the name has a code on the same line as it, what i need is to...
Showing results 1 to 16 of 16

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