Hi,
I have one txt file, and I want replace 2 diffrent texts with somther text and the same time, I want to send that to print..
something like
sed -e 's/Times-Roman/Helvetica/'|sed -e 's/Times/Helvetica/' oldfile > newfile < lp
is this will workout? any idea? (1 Reply)
Hi guys,
In the UNIX work environment we have access other peoples directory and sometimes we have full
access to other people's files.
How can we find out , other than modification time that WHO did modification on any file ?
I know we can change the access of any file by chmod but... (0 Replies)
Hi All,
I would like to know the file modification time till seconds in Unix. So I tried ls -e and it worked fine. This Solaris 5.10
-rw-rw-r-- 1 test admin 22 Sep 12 11:01:37 2008 test_message
But I am not able to run the same command in SOlaris 5.6 and also in AIX/HP
Is there... (3 Replies)
Hi,
I have a directory made up of many symbolic links to folders multiple file systems.
I want to return folders modified within the last 50 days, but find is using the link time rather than the target time.
find . -type d -mtime -50
Is there a way to either:
a) Make a symbolic link... (1 Reply)
Using either vim or awk or sed
If I wish to to search for an unknown pattern - lets say 1B2495 or 1Q2345
so Search pattern : 1
and replace the 1 with 2 to print out :
2B2495 or 2Q2345
what are the possible commands.
Struggling here - help would be appreciated. (5 Replies)
Hi all,
I have a file containing two fields with 154 rows/records/lines (forgive me, my UNIX terminology is not quite up to par yet). I am trying to read from this list, find a value (lets say 0), then print the record/line/row that value falls on (In this case it would be record/line/row #27)?... (5 Replies)
Hi all,
I have a file having data like this:
rs4332761 15XB
rs4332761 unk
rs4571228 15XB
rs457263 5XB
rs4606515 10XA
rs4606515 10XB
rs4606515 15XB
I want output like this:
rs4332761 15XB,unk
rs4571228 15XB
rs457263 5XB
rs4606515 10XA,10XB,15XB
I... (2 Replies)
Hi All,
I need to list the files based modification time of the files from a directory, I cannot use "ls -t" as there are lot of files, which "ls" command cannot handle. New files will land there daily. So iam looking for an alternative through "find"command.
All suggestions are welcomed.
... (6 Replies)
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Ubuntu, Bash 4.3.48
Hi,
I have this input file with many columns separated with ":"
ARC=121:ERF=12244:IDE=2334:ADA=34 ....
ERF=124:ARC=123:IDE=2344:ADA=54 ....
ERF=16254:IDE=2434:ADA=78:ARC=134 ....
and I want this:
ARC=121:IDE=2334
ARC=123:IDE=2344
ARC=134:IDE=2434
I need to... (5 Replies)
Discussion started by: echo manolis
5 Replies
LEARN ABOUT MOJAVE
english5.18
English(3pm) Perl Programmers Reference Guide English(3pm)NAME
English - use nice English (or awk) names for ugly punctuation variables
SYNOPSIS
use English;
use English qw( -no_match_vars ) ; # Avoids regex performance penalty
# in perl 5.16 and earlier
...
if ($ERRNO =~ /denied/) { ... }
DESCRIPTION
This module provides aliases for the built-in variables whose names no one seems to like to read. Variables with side-effects which get
triggered just by accessing them (like $0) will still be affected.
For those variables that have an awk version, both long and short English alternatives are provided. For example, the $/ variable can be
referred to either $RS or $INPUT_RECORD_SEPARATOR if you are using the English module.
See perlvar for a complete list of these.
PERFORMANCE
NOTE: This was fixed in perl 5.20. Mentioning these three variables no longer makes a speed difference. This section still applies if
your code is to run on perl 5.18 or earlier.
This module can provoke sizeable inefficiencies for regular expressions, due to unfortunate implementation details. If performance matters
in your application and you don't need $PREMATCH, $MATCH, or $POSTMATCH, try doing
use English qw( -no_match_vars ) ;
. It is especially important to do this in modules to avoid penalizing all applications which use them.
perl v5.18.2 2014-01-06 English(3pm)