Search Results

Search: Posts Made By: know d unknown
1,942
Posted By know d unknown
pls be specific ... mv abc123456 x123456
pls be specific ...


mv abc123456 x123456
2,353
Posted By know d unknown
can you please put in the command u used... as...
can you please put in the command u used...
as i'm not getting any error wen i use it...
2,353
Posted By know d unknown
try this:
try this:
2,353
Posted By know d unknown
am sorry about the syntax i gav... sed...
am sorry about the syntax i gav...

sed 's:[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]:10/18/2009:g' file_name
2,353
Posted By know d unknown
sed...
sed 's:[0-1][0-9]/[0-3][0-9]/[0-9][0-9][0-9][0-9]:10/18/2009' file_name

Try this...
10,596
Posted By know d unknown
One way of doing this: awk '{a[FNR]=a[FNR]"...
One way of doing this:

awk '{a[FNR]=a[FNR]" "$0} END{for(x in a) { print a[x]}}' file1 file2 file3


Panyam has given a good option... i never knew this thanks ...
5,459
Posted By know d unknown
did u try using "ls -lad" ??
did u try using "ls -lad" ??
7,975
Posted By know d unknown
hi.. let f10="" if [[ -z $f10 ]] then...
hi..

let f10=""

if [[ -z $f10 ]]
then
echo blank
else
echo non-blank
fi

this will work...
9,232
Posted By know d unknown
resetting the value of "i" to zero(0) did not...
resetting the value of "i" to zero(0) did not happen... that is why it prints all the lines between regular expression...
9,232
Posted By know d unknown
sed -n `grep -n <reg_pattern> <filename> | head...
sed -n `grep -n <reg_pattern> <filename> | head -2 | cut -d":" -f1`,`wc -l <filename> | cut -d" " -f1`p <filename>

This is for your satisfaction,.... this would work fine but not recommended......
6,676
Posted By know d unknown
How to make files/folders Password protected
Any idea how to make files/folders password protected...
I dont want to change the permissions of the files/folders...
7,837
Posted By know d unknown
that was good reply vgersh...i never knew...
that was good reply vgersh...i never knew this...thanks...
7,837
Posted By know d unknown
hi Praveen for the time being declare a variable ...
hi Praveen for the time being declare a variable
#!/usr/bin/env bash
# Bash_script001.sh

echo " Inside Bash_script001.sh";
s="$"
...
...
...

cat>>"Bash_script002.sh"<<EOF...
7,837
Posted By know d unknown
thx for pointing out ripat... the following...
thx for pointing out ripat...
the following code will work fine:

awk -F":" 'NR==FNR{a[$1]=$0; next} NR!=FNR{if(a[$1])print a[$1]; else print $0}' shadow2 shadow1...
7,837
Posted By know d unknown
@ Praveen: so is it working fine now ??
@ Praveen:

so is it working fine now ??
7,837
Posted By know d unknown
hi vi... wen your replied " Is it...
hi vi...

wen your replied
" Is it possible you left out the ; before the else? That would give a syntax error."

i have already posted two codes and i couldnt fig out which one u were...
7,837
Posted By know d unknown
the output which got: awk -F":"...
the output which got:

awk -F":" 'NR==FNR{a[$1]=$2; next} NR!=FNR{if(a[$1])print $1," ",a[$1]; else print $0}' shadow2 shadow1
David $1$FbP0lc8N$MIJ8outnkYyBedIYK7TJ6.
sarvani ...
7,837
Posted By know d unknown
hi vi, awk -F":" 'NR==FNR{a[$1]=$2; next}...
hi vi,

awk -F":" 'NR==FNR{a[$1]=$2; next} NR!=FNR{if(a[$1])print $1," ",a[$1]; else print $0 }' file2 file1

which semicolon you are pointing to...i dint get you ???
i hav executed this...
7,837
Posted By know d unknown
am sorry i dint get the error... can you please...
am sorry i dint get the error...
can you please give the complete error...
for the time being can you just try the following code

awk -F":" 'NR==FNR{a[$1]=$2; next} NR!=FNR{if(a[$1])print $1,"...
7,837
Posted By know d unknown
my understanding about ur requirement is ...you...
my understanding about ur requirement is ...you are looking up the value from password file and matching with it on a different column...

awk -F":" 'NR==FNR{a[$1]=$2; next} NR!=FNR{if(a[$1])print...
3,690
Posted By know d unknown
Hi Revathy, "binlib" has given an excelent...
Hi Revathy,
"binlib" has given an excelent code... just modifyin his code will get you your desired result:

code:
sort -k2,5 -k19,19r -k1r filename |sort -mu -k2,5

kindly try this one and...
3,149
Posted By know d unknown
Hi Gross... as Our friend franklin has mentioned...
Hi Gross... as Our friend franklin has mentioned the code will work perfectly fine...
just adding to it...handled few other conditions too...
sed 's/,/| /g' file | awk '{print $0","$(NF-1)","$NF}'...
Forum: Solaris 09-12-2009
4,444
Posted By know d unknown
Check the size of the filesystem... This might...
Check the size of the filesystem...
This might give you a vague report saying the file system has so much contents... and putting in contents means this has been used very frequently... so we can...
2,544
Posted By know d unknown
Hi sam: My understanding on your question ...
Hi sam:

My understanding on your question is
you want to display the 4th column in that file if that was your ques then

awk '{print $4}' <filename>

the above code will work...
am...
Showing results 1 to 24 of 24

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