how to use sed command to find and replace a directory
i have a file.. which contains lot of paths ...
for eg.. file contains..
/usr/kk/rr/12345/1
/usr/kk/rr/12345/2
/usr/kk/rr/12345/3
/usr/kk/rr/12345/4
/usr/kk/rr/12345/5
/usr/kk/rr/12345/6
/usr/kk/rr/12345/7... (1 Reply)
Hi,
I have a entry in the file as
::BSNL GUJARAT::India::OUT::NAT::REWEL::POSTPAID::919426199995
if u see this, i have the delimiter as :: ,
all i want is to replace "::" as ":"
so how to do that..
pls help
thanks (10 Replies)
Hi, Im very new to the world of sed so I'm really not even sure if this is possible. What i need to do is read from a flat file and every time i see this line:
VAL=123,456
I need to change 456 to 457 for every occurence of this line in the file. The numbers 123 and 456 are different for... (6 Replies)
hello forum memvers,
1:I have to write a script for find a string and replace with another string.
2:In shell script how to replace one string with another string.:b: (4 Replies)
Hi all !
I have a fasta file that looks like that:
>Sequence1
RTYIPLCASQHKLCPITFLAVK
(it's just an example, obviously in reality I have several pairs of lines like that)
Using UNIX command(s), would it be possible to replace all the characters except the "C" of the second line only by... (7 Replies)
Hello All,
I need a sed command to find and replace below text in multiple files in a directory.
Original Text :- "$SCRIPT_PATH/files"
Replace with :- "$RESOURCE_FILE"
Thank you in advance !!!
Regards,
Anand Shah (1 Reply)
Hi,
Am trying to replace a character '-' with 'O' in position 289 in my file but am not success with below command.
sed 's/^\(.\{289\}\)-/\1O/' filename
sed: 0602-404 Function s/^\(.\{289\}\)-/\1O/ cannot be parsed.
Thanks in Advance
Sara
Video tutorial on how to use code tags in The... (9 Replies)
Hi Gurus,
I did an exhaustive search for finding the script using "sed" to exclude the first line of file during find and replace.
The first line in my file is the header names.
Thanks for your help.. (4 Replies)
The content of the file filea.txt is as follows.
---------
case $HOSTNAME in
aaa)
DS_PARM_VALUE_SET=vsDev
APT_Configuration_File=/appl/infoserver/Server/Configurations/2node.apt
;;
bbb)
DS_PARM_VALUE_SET=vsQA... (3 Replies)
Hello,
I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..
Example :
Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD
I need to generate and output file with :
... (6 Replies)
Discussion started by: royinfo.alain
6 Replies
LEARN ABOUT ULTRIX
uustat
uustat(1c)uustat(1c)Name
uustat - uucp status inquiry and job control
Syntax
uustat [ options ]
Description
The command either displays the status of or cancels previously specified commands, or it provides general status on connections to other
systems.
Options-chour
Removes entries older than specified hour. This option can only be executed by the user or the super-user.
-jall
Reports status of all requests.
-kjobn
Kills specified job. The killed request must belong to the person issuing the command unless that person has "super-user" privilege.
-mmch
Reports status of accessibility of machine mch. If mch is specified as all, then the status of all machines known to the local are pro-
vided.
-ohour
Reports status of requests which are older than specified hour.
-ssys
Reports status of requests for specified system.
-uuser
Reports status of requests issued by specified user.
-v Invokes verbose printout option. If this option is not specified, a status code is printed with each request.
-yhour
Reports status of all requests that are younger than specified hour.
When no options are given, outputs the status of all requests issued by the current user. Note that only one of the options -j, -m, -k,
-c, can be used with the other options. For example, the command
uustat -usteve -slimbo -y63 -v
will print the verbose status of all jobs that were issued by user steve destined for system limbo within the last 63 hours. The format of
each job status entry is:
job# user destination spool_time status_time status
where the status may be either an octal number or a verbose description. The octal code corresponds to the following description:
OCTAL STATUS
00001 Copy failed for unknown reasons.
00002 Permission to access local file is denied.
00004 Permission to access remote file is denied.
00010 Bad uucp command is generated.
00020 Remote system cannot create temporary file.
00040 Cannot copy to remote directory.
00100 Cannot copy to local directory.
00200 Local system cannot create temporary file.
00400 Cannot execute uucp.
01000 Copy succeeded.
02000 Copy finished, job deleted.
04000 Job is queued.
The format for the machine accessibility status entries is:
system status_time last_success_time status
where
system is the system in question
status_time
is the time the last status entry was made.
last_success_time
is the last time a connection was successfully made to this system. A conversation could be ended prematurely after a successful
connection.
status is a self-explanatory description of the machine status.
In the current implementation requests are not recorded in the logging files. This implies that mail and news requests are not recorded by
Files
/usr/spool/uucp/ spool directory (top level)
/usr/lib/uucp/L_stat system status file
/usr/lib/uucp/R_stat request status file
See Alsouucp(1c)uustat(1c)