10-07-2007
Hi zazzybob,
Thanks for you help.
voa2mp3
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, all
I need to get fields in a line that are separated by commas, some of the fields are enclosed with double quotes, and they are supposed to be treated as a single field even if there are commas inside the quotes.
sample input:
for this line, 5 fields are supposed to be extracted, they... (8 Replies)
Discussion started by: kevintse
8 Replies
2. Shell Programming and Scripting
Hello, I am using awk to match text in a tab separated field and am able to do so when matching the exact word. My problem is that I would like to match any sequence of text in the tab-separated field without having to match it all. Any help will be appreciated. Please see the code below.
awk... (3 Replies)
Discussion started by: rocket_dog
3 Replies
3. Shell Programming and Scripting
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Discussion started by: right_coaster
4 Replies
4. Shell Programming and Scripting
Hello,
I have a few thousand files that contain backquotes (`) which were a typo in the program. Now I only want to delete these backquotes from these files.
In these cases I normally use the sed command in a script, but I can't seem to get sed to remove the backquotes. I tried several... (6 Replies)
Discussion started by: bckoop
6 Replies
5. Shell Programming and Scripting
Hello experts
I have a file with paragraphs begining with a keeping date and ending with "END":
20120301 num num
John num num A keepnum1 num num
kathrin num num A keepnum1 num num
kathrin num num B keepnum2 num num
Pete num num A keepnum1 num num
Jacob num... (2 Replies)
Discussion started by: phaethon
2 Replies
6. Shell Programming and Scripting
I am trying to parse the input in awk to include the |gc= in $4 but am not able to. The below is close:
awk so far:
awk '{sub(/\|]+]++/, ""); print }' input.txt Input
chr1 955543 955763 AGRN-6|pr=2|gc=75 0 +
chr1 957571 957852 AGRN-7|pr=3|gc=61.2 0 +
chr1 970621 ... (7 Replies)
Discussion started by: cmccabe
7 Replies
7. Shell Programming and Scripting
We have a csv file as mentioned below and the requirement is to change the date format in file as mentioned below.
Current file (file.csv)
----------------------
empname,date_of_join,dept,date_of_resignation
ram,08/09/2015,sales,21/06/2016
"akash,sahu",08/10/2015,IT,21/07/2016
... (6 Replies)
Discussion started by: gopal.biswal
6 Replies
8. Shell Programming and Scripting
I am trying to output a tab-delimited result that uses the data from a tab-delimited file to combine and subtract specific lines.
If $4 matches in each line then the first matching sequential $6 value is added to $2, unless the value is 1, then the original $2 is used (like in the case of line... (3 Replies)
Discussion started by: cmccabe
3 Replies
9. Shell Programming and Scripting
In the awk below I am trying to set/update the value of $14 in file2 in
bold, using the matching NM_ in $12 or $9 in file2
with the NM_ in $2 of file1.
The lengths of $9 and $12 can be variable but what is consistent is the start pattern
will always be NM_ and the end pattern is always ;... (2 Replies)
Discussion started by: cmccabe
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
So awk is driving me crazy on this one. I have searched everywhere and read man, docs and every related post Google can find and still no luck. The actual files I need to run this on are sensitive in nature, but it is the same thing as if I needed to calculate weighted grades for multiple... (15 Replies)
Discussion started by: cotilloe
15 Replies
LEARN ABOUT DEBIAN
smd-client
smd-client(1) Sync Mail Dir (smd) documentation smd-client(1)
NAME
smd-client - receives diffs and performs actions
SYNOPSIS
smd-client [-v|--verbose] [-d|--dry-run] [-t|--translator]
[-l|--local-sync] [--rename-only]
[--override-db dbf] endpoint mailboxes
DESCRIPTION
smd-client needs to know a name (endpoint) for the client (that must not be used by others) and a list of mailboxes (directories).
smd-client waits on stdin a mail dir diff. It attempts to execute these actions, eventually asking data printing commands on stdout and
expecting the data on stdin.
OPTIONS
-t --translator
Specify a program to translate remote mailbox names to local ones. Note that the translator 'cat' (the identity program) is opti-
mized away
-l --local-sync
Local synchronization, no changes is made to the db-file since smd-server takes care of it
--rename-only
Do not synchronize the mailboxes but generate the script '~/smd-rename.sh' to uniform the files names in the mailbox
--override-db dbf
Use dbf as the db-file
-v --verbose
Increase program verbosity (printed on stderr)
-d --dry-run
Do not perform any action for real
NOTES
smd-client is a low level utility. You should use higher level tools like smd-pull(1) and smd-push(1)
SEE ALSO
mddiff(1), smd-server(1), smd-pull(1), smd-push(1)
AUTHOR
Enrico Tassi <gares@fettunta.org>
11 June 2012 smd-client(1)