Sponsored Content
Top Forums Shell Programming and Scripting awk: compose regex in variable and then use its contents like $0 ~ var Post 302686757 by Corona688 on Wednesday 15th of August 2012 11:15:30 AM
Old 08-15-2012
Yes, it works just like that. You don't need to store // in the string, either.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

accidentally remove the contents of /var/sadm/pkg

Hi all, I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot. :eek: (11 Replies)
Discussion started by: stancwong
11 Replies

2. Shell Programming and Scripting

Compose variable name

Hi, CRT=1 LPORT= while do echo "Please type the Port and F when finish : (current value: $LPORT)" readDefault -e LPORT if then "LISTEN_PORT"$CRT=$LPORT $CRT++ fi done for i in "$CRT"; do echo... (3 Replies)
Discussion started by: potro
3 Replies

3. Shell Programming and Scripting

awk - print file contents except regex

Hello, I have a file which has user information. Each user has 2 variables with the same name like Email: testuser1 Email: testuser1@test.com Email: testuser2 Email: testuser2@test.com My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Discussion started by: rmsagar
6 Replies

4. Shell Programming and Scripting

Resolving Var to its contents

Hello everyone.... I am trying to dinamically create variable names and do resolution of this vars contents. After that is done I want to use (via a function call) the var and its contents by referring to it via the variable name. I am having a hard time achieving this .... can you help ? ... (5 Replies)
Discussion started by: gio001
5 Replies

5. Solaris

Lost /var/sadm/install/contents file and /var/sadm/pkg

Hello, I recently found that my /var/sadm/install/contents, ~/admin/default, /var/spool/patch and /var/spool/pkg files were empty. This broke the pkginfo, pkgchk and other package related tools. The pkgmap no longer points to where the applications have been installed. I have replaced the... (0 Replies)
Discussion started by: ronin42
0 Replies

6. Shell Programming and Scripting

passing a regex as variable to awk and using that as regular expression for search

Hi All, I have a sftp session log where I am transferring multi files by issuing "mput abc*.dat". The contents of the logfile is below - ################################################# Connecting to 10.75.112.194... Changing to: /home/dasd9x/testing1 sftp> mput abc*.dat Uploading... (7 Replies)
Discussion started by: k_bijitesh
7 Replies

7. Shell Programming and Scripting

Providing variable contents to awk

Hello, All. This is my first post here, and I expect that the answer is simple, but I can't find it. Might be the way I'm searching. I'm fairly new to Unix/Linux, and I'm writing a Korn Shell Script. I am trying to provide a value that is already in a variable to awk so that awk can pull out the... (3 Replies)
Discussion started by: compguy74
3 Replies

8. Shell Programming and Scripting

need to grep contents of a file within specific time span. regex i am using is not working

Hi , I am trying to extract contents of a file between specified time stamp. but it does not seem to work. i am trying to extract output of /var/adm/messages between 15:00:00 to 15:23:59 . i have tried two regex the first one seems to kind of work. it displays some output. the second one is... (13 Replies)
Discussion started by: chidori
13 Replies

9. Shell Programming and Scripting

Folder contents getting appended as strings while redirecting file contents to a variable

Hi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/' Resource List : <br> *************************** 1. row ***************************<br> ... (2 Replies)
Discussion started by: vivek d r
2 Replies

10. Solaris

Contents deleted from /var/sadm

Hi, Somebody/somebody removed all contents /vat/sadm on Solaris 10 Sparc box. As of now server is up and running. There is no backup for this server. If we copy contents from another equivalent server, can it work ? We don't know if it will be fixed by booting form DVD also. Any suggestions? (4 Replies)
Discussion started by: solaris_1977
4 Replies
po2oo(1)						      Translate Toolkit 1.9.0							  po2oo(1)

NAME
po2oo - convert Gettext PO localization files to an OpenOffice.org (SDF) localization file SYNOPSIS
po2oo [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE] [-o|--output] OUTPUT [-t|--template TEMPLATE] [-l|--language LANG] [--source-language LANG] [-T|--keeptimestamp] [--nonrecursiveoutput] [--nonrecursivetemplate] [--skipsource] [--filteraction ACTION] [--fuzzy] [--nofuzzy] [--multifile MULTIFILESTYLE] DESCRIPTION
see: http://translate.sourceforge.net/wiki/toolkit/po2oo for examples and usage instructions OPTIONS
--version show program's version number and exit -h/--help show this help message and exit --manpage output a manpage based on the help --progress show progress as: dots, none, bar, names, verbose --errorlevel show errorlevel as: none, message, exception, traceback -i/--input read from INPUT in xlf, po, pot formats -x/--exclude exclude names matching EXCLUDE from input paths -o/--output write to OUTPUT in oo, sdf formats -t/--template read from TEMPLATE in oo, sdf formats -l/--language set target language code (e.g. af-ZA) [required] --source-language set source language code (default en-US) -T/--keeptimestamp don't change the timestamps of the strings --nonrecursiveoutput don't treat the output oo as a recursive store --nonrecursivetemplate don't treat the template oo as a recursive store --skipsource don't output the source language, but fallback to it where needed --filteraction action on pofilter failure: none (default), warn, exclude-serious, exclude-all --fuzzy use translations marked fuzzy --nofuzzy don't use translations marked fuzzy (default) --multifile how to split po/pot files (single, toplevel or onefile) Translate Toolkit 1.9.0 po2oo(1)
All times are GMT -4. The time now is 01:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy