Search Results

Search: Posts Made By: asadlone
19,486
Posted By asadlone
awk comparison with variable
hi,

I want to compare i variable in the awk statement but its not working out. Pl help me out

If we do the comparison like this its OK,

cat sample | awk -F" ", '{if ($1=="1-Sep-2009") print...
15,603
Posted By asadlone
the script is not running in c shell for bash...
the script is not running in c shell for bash shell its ok.
how can we check for c shell dependencies
15,603
Posted By asadlone
yes it is working like that...but i want to run...
yes it is working like that...but i want to run it in single sommand as i want to crontab it.
It is working on one of my xun machine but not working in the other...
15,603
Posted By asadlone
then: then/endif not found
Hi All
I am getting this error when i try to run script from root using other user profile. Command I am running is

"su - user -c command"


Error envounterd

"then: then/endif not found"
...
Forum: Solaris 04-21-2009
1,886
Posted By asadlone
bad substituion error
Dear All
i am getting "bad substituion" error in the follwing piece of code when i run from crontab.however it works if i run directly from my machine.

#!/bin/bash
for i in `cat abc`
do...
1,943
Posted By asadlone
well that will list in a particular directory......
well that will list in a particular directory... i want to find the such kind of newly created/modified files from the whole filesystem in descending order.
1,943
Posted By asadlone
Finding files
How can we find "latest files which have been recently updated/changed/created" in solaris 10???
Forum: Solaris 01-14-2009
4,604
Posted By asadlone
Previous Date
Hi
I need a script which gets me the previous date

d=$(date '+%d') returns the current date but subtracting one from it is not yielding me solution.

Pl help me out.

thanks
Forum: Solaris 01-07-2009
1,746
Posted By asadlone
thanks mate u saved the day:)
thanks mate u saved the day:)
Forum: Solaris 01-07-2009
1,746
Posted By asadlone
innovating with grep command
Hi,

I want to grep a particular number such as 2111111111 and then the next 4 lines to it in the file. How can i do it? or to rephrase it i want to grep 2111111111 and then grep corresponding...
4
3,921
Posted By asadlone
hi ... well i will use ssh but it ask for...
hi ... well i will use ssh but it ask for password on prompt and i have to include that in the script. so can u guide me with that.
4
3,921
Posted By asadlone
rlogin
Hi all,

i need to remotely execute a couple of commands on anyother server, but rsh is not allowed. for that matter i am bound to use rlogin. so what i am trying to do in the script is :

1)...
2,323
Posted By asadlone
ok thanks. if we wanna ignore the binary files...
ok thanks. if we wanna ignore the binary files how we gonna do it... coz we cannot 'cat / view' them as it shows hexadecimal characters...
4,485
Posted By asadlone
but that will give updated files in the current...
but that will give updated files in the current working directory...
i need to see in whole filesystem starting from root and onwards

i wanna check which files are the most updated ones ....not...
4,485
Posted By asadlone
checking out latest updated file
hi,
i was wondering if there is a way to find out which file is updated the most recent time in the entire file system.... most probably this would be refering to some LOG file, but i wanna find a...
2,323
Posted By asadlone
listing all code in all files in all directories
Hi all,
can any one help me out in this:::
basically i need to list all the contents in all files in all directories (starting from root and then onwards)...i will get the session saved in a file...
32,814
Posted By asadlone
does not help that much, can u tell me some...
does not help that much,

can u tell me some other easier way out.

thanks
32,814
Posted By asadlone
Date variable
Dear all,

Today=`date +%d%m%y``

I want to decrease the date by 1. How would we do that.


Thanks.
Forum: Solaris 11-23-2007
17,077
Posted By asadlone
So we can transfer the move the free space from...
So we can transfer the move the free space from SWAP partition to root....u may be knowing the we can increase the size of swap... so firstly we just increase the swap size and then we add that part...
Forum: Solaris 11-22-2007
17,077
Posted By asadlone
Hi, yeah whats the next step after creating...
Hi,

yeah whats the next step after creating metadevices. I used metainit to create the devices.
Forum: Solaris 11-21-2007
17,077
Posted By asadlone
Increasing size of Root Partition
Dear all, How can we increase the space for the root partition, ensuring that there is no loss of data in Solaris 9. How can the growfs command be utilized in this case.

Thanks.
5
awk
2,718
Posted By asadlone
nawk command isnt found nawk -v limit=70...
nawk command isnt found

nawk -v limit=70 'NR>0 && int($5) >=limit' asad.txt
-bash: nawk: command not found
4,466
Posted By asadlone
Port Configuration
how do we find Port Configuration in solaris 8/9 telling us whether its used for half duplex or full duplex


thanks
5
awk
2,718
Posted By asadlone
its basically the one line... but when i run this...
its basically the one line... but when i run this it does not return the required result...

df -h | awk -v limit=70 'NR>0 && int($5) >=limit'

please note that the partition mounted on...
5
awk
2,718
Posted By asadlone
awk
Dear All,

I am not getting the expected output :::

df -h | awk -v limit=70 'NR>0 && int($5) >=limit'

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p10 ...
Showing results 1 to 25 of 44

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