Search Results

Search: Posts Made By: pradebban
Forum: HP-UX 03-09-2012
2,564
Posted By pludi
Download the matching depot here...
Download the matching depot here (http://hpux.connect.org.uk/hppd/hpux/Gnu/findutils-4.4.2/)
Use sam to install.
3,381
Posted By ctsgnb
nawk -F\|...
nawk -F\| 'NR==FNR{n=NF;split($0,A,"\|");next}FNR==1{d=0}{for(i=0;++i<=n;)if($i==A[i]) ++d;print FILENAME ":" d}' f1 f2 f3
3,381
Posted By ctsgnb
Assuming - as per your example - that all your...
Assuming - as per your example - that all your files contain 1 line :

$ cat f1
1|2|5|7|8|2|3|6|3|1
$ cat f2
1|2|3|1|2|7|9|6
$ cat f3
1|0|5|0|8|2|1|1|1
$ nawk -F\|...
Forum: HP-UX 12-05-2011
3,919
Posted By methyl
Enabling the arrow keys, insert key, and page...
Enabling the arrow keys, insert key, and page up/page down keys in "vi" has to be done in a ".exrc" file in your home directory. See "man ex". The contents of the ".exrc" file depend on your...
Forum: HP-UX 11-29-2011
3,919
Posted By vbe
Do you mean name completion? That will depend...
Do you mean name completion?
That will depend of your configuration and environment, typically with ksh, you would have in your .profile:

export EDITOR=/usr/bin/vi

To see if its something of...
3,702
Posted By Corona688
There is an overhead to locate, just so you know....
There is an overhead to locate, just so you know. It's faster only because it stores a database of files on the system, which has to be updated daily by a cron job.
2,414
Posted By getmmg
perl -lne 'print /\/(\w+\.html)/g' temp.txt
perl -lne 'print /\/(\w+\.html)/g' temp.txt
2,414
Posted By ctsgnb
sed 's:.*/::' temp.txt >anotherfilefor i in `cat...
sed 's:.*/::' temp.txt >anotherfilefor i in `cat temp.txt`
do echo "${i##*/}"
done >anotherfile

awk '{sub(".*/",z)}1' temp.txt >anotherfile
2,414
Posted By itkamaraj
awk -F"\/" '{print $NF}' temp.txt
awk -F"\/" '{print $NF}' temp.txt
Forum: Linux 12-21-2010
6,991
Posted By pludi
What's the output of alias ls? Basically, it...
What's the output of alias ls?

Basically, it looks like your ls is an alias, which always colorizes output, even when it's not printed on a terminal. You can change that either by re-defining the...
3,769
Posted By k_manimuthu
I update my previous post. Try the updated code.
I update my previous post. Try the updated code.
3,769
Posted By k_manimuthu
perl -i -pe 'undef $/;...
perl -i -pe 'undef $/; s/<(Opt)>-L\$ORACLE_HOME.*?<\/\1>([^\n]*\n){2}//s; ' infile
3,769
Posted By michaelrozar17
The space in between /.../ in sed are for pattern...
The space in between /.../ in sed are for pattern matching. So whatever pattern your trying to match place it in between the forward slashes..like below
sed '/<Opt>-L$ORACLE_HOME\/lib/.....'...
3,769
Posted By michaelrozar17
we do not need to escape the dollar sing in this...
we do not need to escape the dollar sing in this case..
sed '/<Opt>-L$ORACLE_HOME/{N;d}' inputfile
3,769
Posted By michaelrozar17
if searching for pattern ORACLE_HOME then the...
if searching for pattern ORACLE_HOME then the below one deletes the line containing ORACLE_HOME and the subsequent line.
sed '/ORACLE_HOME/{N;d}' inputfile
Showing results 1 to 15 of 15

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