Sponsored Content
Top Forums UNIX for Dummies Questions & Answers little problem of file redirection (awk) Post 302707041 by beca123456 on Thursday 27th of September 2012 11:38:42 PM
Old 09-28-2012
Whoops sorry, in the code I meant "for_later.txt" (I corrected the code). There is no .tab file
Quote:
The file "for_later.txt" looks perfectly fine:

Code:
book # 001|1|America
book # 002|56|Asia
book # 003|38|Europe
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Redirection Problem

I was simply trying to redirect some output in a log file but it foxed me. truss a.out > log It gave only the output of the a.out which was only a simple print "Hello" Then I tried truss a.out 2&1>a echo `truss a.out` > a All failed. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

2. Shell Programming and Scripting

redirection problem

Hello Experts, I am facing the following problem .. >cat my_file prints initial begin StartSim; LDR(on); // Lock Detect Enable But when I trying the same with the following command it shows me all the line in the same line.Like ... (4 Replies)
Discussion started by: user_prady
4 Replies

3. Shell Programming and Scripting

awk two file redirection

Hi, i use awk -F to print three variable delimited by comma $1 $2 $3 if $2=="" i want to extract this information missing from another file using awk -v + some process. but the problem i can't use the two awk together cause of redirection there's a solution. note: i can't use another... (1 Reply)
Discussion started by: kamel.seg
1 Replies

4. Shell Programming and Scripting

file redirection problem

my querry is suppose i have duplicate std i/p with FD-3 --exec 0<&3 now redirected std i/p to a file ----exec 0<file1 suppose i am reading the file line by line --while read LINE cutting some fields and comparing it with a variable and if a match is found ... (0 Replies)
Discussion started by: mobydick
0 Replies

5. Shell Programming and Scripting

Redirection problem

hi i want a solution for the fallowing: i am redirecting output from bash script in which we are running background commands like ./test.sh contains ls -l & ps when we do as ./test.sh 1> test.txt 2>&1 but test.txt not containing output as ls -l and ps. it showing ls -l, ps and... (2 Replies)
Discussion started by: indianwomen
2 Replies

6. Shell Programming and Scripting

awk print redirection to variable file name

Hello, i need to redirect the output of print to a variable file name: #This is normal awk '{ print $17 > "output.txt" }' input #I need something like this awk '{ print $17 > "output_${25}.txt" }' input how to format the output file name to contain a variable? (6 Replies)
Discussion started by: nazeeb
6 Replies

7. Shell Programming and Scripting

awk output redirection to file

I have a system stat command running which generates data after 5 sec or so. I pass this data to awk and do some calculation to present the data differently. Once done now I want to pass this data to file as and when generated but doesn't work..unless the first command completes successfully.... (6 Replies)
Discussion started by: learnscript
6 Replies

8. Shell Programming and Scripting

Problem of redirection with <<! ... !)

Hi, I have to migrate Korn Shell who call Sybase command into Oracle Command. I have a problem on this example : DATNUM=$( sqlplus -S SA/SASASA@MIGGVDEV <<! SET FEEDBACK OFF; SET HEADING OFF; select sybase_utilities.datediff('DAY', '01/01/1900', '01/01/2000') from... (4 Replies)
Discussion started by: buzzy1804
4 Replies

9. Shell Programming and Scripting

Problem with file redirection in while

I've got a problem with file redirection in bash, in loop while (in my script done < bufor.txt). In every consecutive iteration there's a possibility that to the bufor.txt will be added some lines. Unfortunately, in loop, added lines are ignored (for example: bufor.txt has 5 lines, in 3rd iteration... (4 Replies)
Discussion started by: kk9
4 Replies

10. Shell Programming and Scripting

awk file redirection issue

So I'm writing a script which tries to parse human-readable addresses. Part of it is this: print $2, implode(A,1,AN," "), CITY, PROV, POST, COUNTRY, CITYCOUNT>2; CITYCOUNT is a variable between 0 and 3 counting the number of words in a city name. I'm trying to prnt 1 wherever that's greater... (5 Replies)
Discussion started by: Corona688
5 Replies
EBOOK-META(1)							      calibre							     EBOOK-META(1)

NAME
ebook-meta - part of calibre SYNOPSIS
ebook-meta ebook_file [options] DESCRIPTION
Read/Write metadata from/to ebook files. Supported formats for reading metadata: azw, azw1, azw3, azw4, cbr, cbz, chm, epub, fb2, html, htmlz, imp, lit, lrf, lrx, mobi, odt, oebzip, opf, pdb, pdf, pml, pmlz, pobi, prc, rar, rb, rtf, snb, tpz, txt, txtz, updb, zip Supported formats for writing metadata: azw, azw1, azw3, azw4, epub, htmlz, lrf, mobi, pdb, pdf, prc, rtf, tpz, txtz Different file types support different kinds of metadata. If you try to set some metadata on a file type that does not support it, the metadata will be silently ignored. Whenever you pass arguments to ebook-meta that have spaces in them, enclose the arguments in quotation marks. OPTIONS
--version show program's version number and exit -h, --help show this help message and exit -t, --title Set the title. -a, --authors Set the authors. Multiple authors should be separated by the & character. Author names should be in the order Firstname Lastname. --title-sort The version of the title to be used for sorting. If unspecified, and the title is specified, it will be auto-generated from the title. --author-sort String to be used when sorting by author. If unspecified, and the author(s) are specified, it will be auto-generated from the author(s). --cover Set the cover to the specified file. -c, --comments Set the ebook description. -p, --publisher Set the ebook publisher. --category Set the book category. -s, --series Set the series this ebook belongs to. -i, --index Set the index of the book in this series. -r, --rating Set the rating. Should be a number between 1 and 5. --isbn Set the ISBN of the book. --tags Set the tags for the book. Should be a comma separated list. -k, --book-producer Set the book producer. -l, --language Set the language. -d, --date Set the published date. --get-cover Get the cover from the ebook and save it at as the specified file. --to-opf Specify the name of an OPF file. The metadata will be written to the OPF file. --from-opf Read metadata from the specified OPF file and use it to set metadata in the ebook. Metadata specified on the command line will over- ride metadata read from the OPF file --lrf-bookid Set the BookID in LRF files SEE ALSO
The User Manual is available at http://manual.calibre-ebook.com Created by Kovid Goyal <kovid@kovidgoyal.net> ebook-meta (calibre 0.8.51) January 2013 EBOOK-META(1)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy