Assign x with value "1". Then goes through the file.
If it is within "DEFINE SCHEMA" and ");", it would be true (highlighted in red).
The if statement below looks for lines with 2 fields (highlighted in blue) and replaces $1 (field 1 which is cntnt_id) as "tX as filler" where X is then number "1". This would then be incremented by 1 using x++ after. X shall be "2" which will be used for later if we find the next match.
Hi all,
I need to extract the Particular string from the whole word,the input file is :
123,345,aaaa,555,....,....
I need all the record from 345 so i need to eliminate the first record.
Output:
345,aaa,5555,....,.....,.....
Thanks in advance. (3 Replies)
{Hello All,
Here is what I am trying to do:
I have an archive file: AppName.ear
jar -tvf AppName.ear
60459 Thu May 01 09:29:36 EDT 2008 /SharedResources/Application/App.dat
67542 Thu May 01 09:29:36 EDT 2008 JDBCConn/Application/App.dat
14488 Thu May 01 09:29:36 EDT 2008 config.xml
... (0 Replies)
Hi all,
I wanted to replace one word with another word pl help me to solve the same.
example:-
I wanted to replace RXOTX with RXOTRX in a perticuler file with hole.
Regards,
Ramesh (2 Replies)
Hi I'm having difficulty in writing a script with searching a specified word using sed and replaces that word with numbers that is incremented
I tried this:
#!/bin/sh
awk '{ for (i=2010; i<=NF; i++) sed 's/TBA/$i; }' filename.txt > outputfile.txt
but it doesn't work. here is my desired... (1 Reply)
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Dear Friends,
I am facing some problem with some hundred files. Hence to use these file I have to make a small change in each file. But its not possible to open each file and make changes manually. Hence I need guidance frm you to automate it.
Example File name is "Queue_11.txt"
reload sec=F... (6 Replies)
Hi Guys,
Need you quick assistance on the below, trying to extract a word from a variable
i.e. acmi101acmi102acmi103acmi104
When i use the following code awk '{gsub(/cmi102/,"")};1' it leaves a space in the variable, need to get rid of the space that it leaves. Any ideas.
the above... (3 Replies)
Hi Folks,
Could you please advise what will be the SED command to replace a word in all xml's under a particular directory
for example let say I rite now at the following below location
$ cd /ter/rap/config
now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Dear ALL,
I have sample file :
IDcentos-forum,bash,linuxCentOS,GNome
IEfedora-milis,cli,linuxRedhat,KDE
IRfreebsd-milis,aix,unixbsd,pyton
required output:
centos,bash,linuxCentOS,GNome
fedora,cli,linuxRedhat,KDE
freebsd,aix,unixbsd,pyton
Can you help me pls.. (1 Reply)
Discussion started by: gnulyn
1 Replies
LEARN ABOUT LINUX
cabextract
CABEXTRACT(1) General Commands Manual CABEXTRACT(1)NAME
cabextract - program to extract files from Microsoft cabinet (.cab) archives
SYNOPSIS
cabextract [-ddir] [-f] [-Fpattern] [-h] [-l] [-L] [-p] [-q] [-s] [-t] [-v] cabinet files ...
DESCRIPTION
cabextract is a program that un-archives files in the Microsoft cabinet file format (.cab) or any binary file which contains an embedded
cabinet file (frequently found in .exe files).
cabextract will extract all files from all cabinet files specified on the command line.
To extract a multi-part cabinet consisting of several files, only the first cabinet file needs to be given as an argument to cabextract as
it will automatically look for the remaining files. To prevent cabextract from extracting cabinet files you did not specify, use the -s
option.
OPTIONS
A summary of options is included below.
-d dir Extracts all files into the directory dir.
-f When testing or extracting cabinet files, corrupted MSZIP blocks will be ignored. A warning will be printed if a corrupted MSZIP
block is encountered.
-F pattern
Only files with names that match the shell pattern pattern shall be listed, tested or extracted. On non-GNU systems, this match may
be case-sensitive.
-h Prints a page of help and exits.
-l Lists the contents of the given cabinet files, rather than extracting them.
-L When extracting cabinet files, makes each extracted file's name lowercase.
-p Files shall be extracted to standard output.
-q When extracting cabinet files, suppresses all messages except errors and warnings.
-s When testing, listing or extracting cabinets which span multiple files, only cabinet files given on the command line shall be used.
-t Tests the integrity of the cabinet. Files are decompressed, but not written to disk or standard output. If the file successfully
decompresses, the MD5 checksum of the file is printed.
-v If given alone on the command line, prints the version of cabextract and exits. Given with a list of cabinet files, it will list the
contents of the cabinet files.
AUTHOR
This manual page was written by Stuart Caie <kyzer@4u.net>, based on the one written by Eric Sharkey <sharkey@debian.org>, for the Debian
GNU/Linux system.
SEE ALSO lcab(1)
October 30, 2005 CABEXTRACT(1)