Search Results

Search: Posts Made By: n_rajitr
15,699
Posted By n_rajitr
Thank you
Hey Methyl,

My o/s version is B.11.31 and to answer your question - Yes, I do have perl on my server.

I didn't use perl because I am not too well versed with it....for most of my tweaking, I...
15,699
Posted By n_rajitr
Nope...still didnt work...getting this error...
Nope...still didnt work...getting this error now..

>du -a --time
du: illegal option -- -
usage: du [-a|-s] [-kbrx] [-H|-L] [-t type] [name ...]


i think ive tried all the different...
15,699
Posted By n_rajitr
Thanks for the quick reply Yinyuemi. ...
Thanks for the quick reply Yinyuemi.

However, I get the following error while trying to use this command --
>du -t --time XYZ.gnt
du: invalid file system type --time

Am I missing something?
15,699
Posted By n_rajitr
How to get timestamp of a file in HPUX
Hi All,

Am trying to get a command which gives the "date + time" that a file was edited.

I cant use "ls -l" because it fails to get me the "time stamp" of files that were edited more than 6...
4,163
Posted By n_rajitr
Search in command history
Hi Guys,
This one is, seemingly, a very simple question.

I am on HPUX1572. The shell used is ksh.

I used to locate a command using esc-K '/' followed by a few letters of the command.

I...
6,088
Posted By n_rajitr
Wont this help? Let your string be abcde ...
Wont this help?

Let your string be abcde
cd <your-directory>
for file in *
do
sed "s/^/abcde/g" $file > ${file}.1;mv ${file}.1 $file
done
2,320
Posted By n_rajitr
AIX/HPUX - Need to get the last few bytes of a text
Hi guys,

I am in need of a simple, (typically one-liner) script to get the last 17 bytes of a line.

Eg.

echo "abcdefghijklmnopqrstuv"

here i would need the last 17 bytes of the text
ie....
10,756
Posted By n_rajitr
Add a line after last occurnace of a pattern.
Hey guys,

I was looking for a simple script to add a line after a pattern. Only that the pattern can occur tons of times in a file.

I have to add a line once after the "last" occurance of the...
41,098
Posted By n_rajitr
Hi
Wont this suffice?

count=0
cat TXTPROCESS.TXT.20071129 | while read file
do
if [ $count -eq 0 ];then
(count+=1))
continue
fi
echo $line
done
Showing results 1 to 9 of 9

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