Search Results

Search: Posts Made By: b33713
2,362
Posted By b33713
RHEL5.1
RHEL5.1
2,362
Posted By b33713
question about man font conventions
i was viewing the gawk's man file,checked the man faqs,didnt find anything about the char "e" meaning

.TP
.B \e`
matches the empty string at the beginning of a buffer (string).
.TP
.B \e'...
5,757
Posted By b33713
#!/bin/sh five_mins_ago=$(date -d '5 min ago'...
#!/bin/sh
five_mins_ago=$(date -d '5 min ago' +%s)
awk -v start=$five_mins_ago '{
getlogtime="date -d "$1" +%s"
getlogtime | getline logtime
if (logtime > start ) print...
2,624
Posted By b33713
try this for /f "usebackq" %%i in (`dir /b...
try this
for /f "usebackq" %%i in (`dir /b access.*`) do (
if not %%i==access del /f /q %%i
)
4,521
Posted By b33713
it doesn't work on RHEL... so is it a dead...
it doesn't work on RHEL...
so is it a dead end?....
2,103
Posted By b33713
echo CONTACT...
echo CONTACT PEOPLE:first_name1.last_name1,first_name2.last_name2,first_name3.last_name3 | cut -d: -f2
is this ok?
4,521
Posted By b33713
it run "anyfilename" as a command,not "ls -l...
it run "anyfilename" as a command,not "ls -l anyfilename" that what i want
anyfilename just for example,it can be any exist file
i use gawk btw
any help?
19,590
Posted By b33713
echo /u01/Sybase/data/master.dbf | grep -o...
echo /u01/Sybase/data/master.dbf | grep -o '[^/]*$'
4,521
Posted By b33713
syntax about getline of awk
i want to use getline to read command output to a var
but the command i want to run is composed of a string and a variable,example:
echo "" | awk 'BEGIN{myfile="anyfilename"}{"ls -l "myfile |...
2,131
Posted By b33713
i am reading the book <sed&awk> here is a copy:...
i am reading the book <sed&awk>
here is a copy:
The append (a), insert (i), and change (c) commands provide editing functions that are commonly performed with an interactive editor, such as vi. You...
11,086
Posted By b33713
yes,it won't ask anything,is that what you...
yes,it won't ask anything,is that what you looking for?automatically :)
i use linux,never had a chance to use solaris,so...you give a try
11,086
Posted By b33713
awk -F, 'NR!=1{system("echo "$3"|passwd --stdin...
awk -F, 'NR!=1{system("echo "$3"|passwd --stdin "$1)}' yourCSVfile

and..about the mail,if you changed their passwords,how do they login and check mail without know the new password?hehe
11,086
Posted By b33713
sorry,i don't know how if you can't access root,i...
sorry,i don't know how if you can't access root,i just tried 'sudo',didn't work
i guess its for the security,you need to be root to change others password 'in script'
4,229
Posted By b33713
you just want to change every 654 to 656? ...
you just want to change every 654 to 656?

oh,my god....

sed 's/\b654\b/656/g' yourOldfile > newfile
4,411
Posted By b33713
the looking good version,lol sort -t= -k2 file...
the looking good version,lol
sort -t= -k2 file | uniq -c | awk '{printf "%s %-40s%d\n",$2,$3,$1}'
11,086
Posted By b33713
with the --stdin option of the command...
with the --stdin option of the command 'passwd',you can do it easily as root
echo 'the old pass you read from csv file' | passwd --stdin user
post a sample of your csv file,i 'll try
4,215
Posted By b33713
sed '/nobody.*\/tftpboott$/ {...
sed '/nobody.*\/tftpboott$/ { s/\/tftpboott/\/flx\/boot/; s/nobody/root/}' /etc/inet.conf
i think this is more secure
Showing results 1 to 17 of 17

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