Search Results

Search: Posts Made By: dinesh1178
2,632
Posted By dinesh1178
Reading entire ebook would be boring initially....
Reading entire ebook would be boring initially. Better to pick a topic and learn it and then pick another topic.

Man pages and Unix.com are good resources to learn that.
1,961
Posted By dinesh1178
Better to use -exec operator. First use...
Better to use -exec operator.

First use this for verification:
find . -type f -mtime +90 -name 'tomcatfiles*.log' -exec ls {} \;

And then this for deletion:
find . -type f -mtime +90 -name...
6,674
Posted By dinesh1178
You can do it directly with grep -i <ip...
You can do it directly with
grep -i <ip address> /etc/hosts

Not sure why you need to use awk. Please provide more details if you have any specific requirement.
1,922
Posted By dinesh1178
mv $file /data/home/abc/xyz/azher/backup/`echo...
mv $file /data/home/abc/xyz/azher/backup/`echo $file|cut -d. -f1`_$now.csv
2,098
Posted By dinesh1178
I thought order of line is not important, as...
I thought order of line is not important, as requester also tried it. By seeing the reply, it seems sort worked fine for him.
2,098
Posted By dinesh1178
I tried copying the lines mentioned here in a...
I tried copying the lines mentioned here in a text file and used sort. It worked.

You can use uniq to remove duplicate lines.
6,128
Posted By dinesh1178
To avoid permission error messages, use this: ...
To avoid permission error messages, use this:

find . -type d -name "sr*" -print 2>/dev/null
1,104
Posted By dinesh1178
You can do this: cat A|sort > tmpA ...
You can do this:


cat A|sort > tmpA
cat B|sort > tmpB
diff tmpA tmpB|grep "<"


You can redirect the last line to an output file too, if required.
15,422
Posted By dinesh1178
gunzip filename.txt.Z or gzip -d...
gunzip filename.txt.Z

or


gzip -d filename.txt.Z


Both command will return you file filename.txt which is readable.
Forum: HP-UX 10-11-2011
36,022
Posted By dinesh1178
You can use following code to check size of all...
You can use following code to check size of all directories and sub-directories :


find . -type d | xargs du -sk
10,629
Posted By dinesh1178
It can also be accomplished easily with : ...
It can also be accomplished easily with :

perl -p -i -e 's/&/&amp/g' infile
7,505
Posted By dinesh1178
For HP UX, you can check here: Technical...
For HP UX, you can check here:

Technical documentation (http://docs.hp.com)

Just select your version and you will get everything including user commands, admin commands, library functions etc.
6,428
Posted By dinesh1178
Gaurav, Thanks friend, your solution is working...
Gaurav,
Thanks friend, your solution is working fine.
6,428
Posted By dinesh1178
"tac" is not available on HP UX
"tac" is not available on HP UX
6,428
Posted By dinesh1178
"rev" reverse the order of characters...
"rev" reverse the order of characters line-wise
6,428
Posted By dinesh1178
Search the last instance of a string in a file
I have a big database log file which keepsgrowing daily. OS is HP UX. Here is a small part of it:

Tue Jan 27 04:03:22 2009
[2009/01/27@04:03:22.906-0500] : add session begin for...
Showing results 1 to 16 of 16

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