Search Results

Search: Posts Made By: ggs
Forum: Solaris 11-23-2009
4,333
Posted By ggs
You can also try the command "diff".
You can also try the command "diff".
14,180
Posted By ggs
The following too will work - tr -d '...
The following too will work -



tr -d ' ' < test.txt > newtest.txt
2,122
Posted By ggs
In excel, you have the "TRANSPOSE" function to...
In excel, you have the "TRANSPOSE" function to shift the vertical/horizontal orientation.
35,076
Posted By ggs
You can try the following script - ...
You can try the following script -



for SVR in server1 server2 server3
do
scp2 -q <filename> user@SVR:/PATH
done
12,243
Posted By ggs
Hi, "while :" and "while true" - are the...
Hi,

"while :" and "while true" - are the same.

"while false" - this would simply take you to the end of the while loop. I havent seen this being used. Does it serve any purpose ??
2,846
Posted By ggs
Hi, Assuming the contents are saved in a...
Hi,

Assuming the contents are saved in a file "saved_data", you can try the following.



cat saved_data | tr "+" "-" | cut -d"-" -f1,3



You can easily remove the square brackets as...
12,695
Posted By ggs
Hi, As far as I know, your first command...
Hi,

As far as I know, your first command (zcat ... | gzip > d.gz) - 'cat's all the three compressed files - then compresses it, one after another and save it to a single file named d.gz.

In...
4,253
Posted By ggs
Also, you can try the simple 'cut' command as...
Also, you can try the simple 'cut' command as used below -



grep PID ~/bug_tool.log | tail -1 | cut -d":" -f2



That would return - 25803 TID. To cut out TID you can use



grep PID...
2,241
Posted By ggs
Hi, You just want to get the file names ? ...
Hi,

You just want to get the file names ? Can the spaces be deleted ? If yes, can you try `tr -s " " ""` and remove spaces ? Will that help your purpose ?
Forum: Solaris 11-04-2009
19,723
Posted By ggs
Hi, If you have root privileges, you can use...
Hi,

If you have root privileges, you can use "ifconfig -a", which will display the MAC address along with the IPs. Also, "banner" command at OK prompt will display the MAC addrs. If you do not...
3,499
Posted By ggs
Hi, Not sure what you mean by "not...
Hi,

Not sure what you mean by "not getting the rite answer for wc -w". Well, since you want the word count of all files in the dir, I would try the below code -



cd YOURDIR
ls -1 >...
2,679
Posted By ggs
Hi Wizard, Try the following - ...
Hi Wizard,

Try the following -



data=`cat $file_in`
tar cf $tarfile $data > /dev/null
res1 = $?
/usr/bin/gzip $tarfile > /dev/null
res2 = $?

if [ $res1 -eq 0 ] && [ res2 = 0 ]; then...
Showing results 1 to 12 of 12

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