Sponsored Content
Top Forums Shell Programming and Scripting printing lines to a file from a particular string Post 302398441 by intiraju on Wednesday 24th of February 2010 04:07:40 PM
Old 02-24-2010
hi Anbu23,
thank you so much. it worked like a charm.

Thanks,
Raju
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

printing first n lines in a file without using head

i have to print first n lines of a file. how can i do that without using head command. for some reason i do not want to use Head. is there a way to get that result using awk or sed?. i an using this on korn shell for AIX Thanks.. (7 Replies)
Discussion started by: dareman123
7 Replies

2. Shell Programming and Scripting

Printing the lines which proceeds the particular string

Hi, We are facing some issues while finding the particular string. Our file is: cat 1.txt Node Name(s) Preparation fragment Partition: Transformation instance: Transformation: Applied rows: Affected rows: Rejected rows: Throughput(Rows/Sec): Throughput(Bytes/Sec): Last... (3 Replies)
Discussion started by: Amey Joshi
3 Replies

3. UNIX for Dummies Questions & Answers

Counting no. of lines and printing it at the start of the file

Dear users, I need to count the number of lines in a simple text file and print the number on the first line of that same file. I know I can count the lines using wc -l file.txt this gives for example 100 file.txt I need the number 100 to be printed at the very top of file.txt... (2 Replies)
Discussion started by: jenjen_mt
2 Replies

4. Shell Programming and Scripting

Printing 10 lines above and below the search string: help needed

Hi, The below code will search a particular string(say false in this case) and return me 10 lines above and below the search string in a file. " awk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r;print("***********************************");print;c=a;}b{r=$ 0}' b=10 a=10 s="false" " ... (5 Replies)
Discussion started by: vimalm22
5 Replies

5. Shell Programming and Scripting

replace (sed?) a single line/string in file with multiple lines (string) from another file??

Can someone tell me how I can do this? e.g: Say file1.txt contains: today is monday the 22 of NOVEMBER 2010 and file2.txt contains: the 11th month of How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies

6. Shell Programming and Scripting

Printing all lines before a specific string and a custom message 2 lines after

Hello all, I need to print all the lines before a specific string and print a custom message 2 lines after that. So far I have managed to print everything up the string, inclusively, but I can't figure out how to print the 2 lines after that and the custom message. My code thus far is:... (4 Replies)
Discussion started by: SEinT
4 Replies

7. Shell Programming and Scripting

Trouble printing multiple lines to a new file

Hi, I'm trying to auto generate some php files with a default preamble at the top which is a block comment. The problem is that my output has no new lines and it looks like the output from "ls" is being printed after everyline This is my code #!/bin/bash read -d '' pre_amble... (1 Reply)
Discussion started by: racshot65
1 Replies

8. Shell Programming and Scripting

Printing the lines that appear in an other file, and the three lines after them

Hi ! I need some help with a script I am writing. I am trying to compare two files, the first file being in this format : Header1 Text1-1 Text1-2 Text1-3 Header2 Text2-1 etc... For each header, I want to check if it appears in the second file, and if it is the case print the header... (4 Replies)
Discussion started by: jbi
4 Replies

9. Shell Programming and Scripting

Printing the lines of the string with highest value

Please help . The script need to first grep for all lines with "C:" as it contains a value Here the value is 0 1,00: This , is a good script c:0 and then give output of the lines with top 3 highest value for c: 1,00: This , is a nice script c:9999 1,00: This , is a... (3 Replies)
Discussion started by: necro98
3 Replies

10. Shell Programming and Scripting

Help in printing n number of lines if a search string matches in a file

Hi I have below script which is used to grep specific errors and if error string matches send an email alert. Script is working fine , however , i wish to print next 10 lines of the string match to get the details of error in the email alert Current code:- #!/bin/bash tail -Fn0 --retry... (2 Replies)
Discussion started by: neha0785
2 Replies
SHOWFOTO(1)						       digiKam Photo Viewer						       SHOWFOTO(1)

NAME
showfoto - digiKam Photo Viewer SYNOPSIS
showfoto [Qt-options] [KDE-options] [file(s)] DESCRIPTION
digiKam Photo Viewer OPTIONS
Arguments: file(s) File(s) to open Generic options: --help Show help about options --help-qt Show Qt specific options --help-kde Show KDE specific options --help-all Show all options --author Show author information -v, --version Show version information --license Show license information -- End of options KDE options: --caption <caption> Use 'caption' as name in the titlebar --icon <icon> Use 'icon' as the application icon --miniicon <icon> Use 'icon' as the icon in the titlebar --config <filename> Use alternative configuration file --dcopserver <server> Use the DCOP Server specified by 'server' --nocrashhandler Disable crash handler, to get core dumps --waitforwm Waits for a WM_NET compatible windowmanager --style <style> sets the application GUI style --geometry <geometry> sets the client geometry of the main widget Qt options: --display <displayname> Use the X-server display 'displayname' --session <sessionId> Restore the application for the given 'sessionId' --cmap Causes the application to install a private color map on an 8-bit display --ncols <count> Limits the number of colors allocated in the color cube on an 8-bit display, if the application is using the QApplication::ManyColor color specification --nograb tells Qt to never grab the mouse or the keyboard --dograb running under a debugger can cause an implicit -nograb, use -dograb to override --sync switches to synchronous mode for debugging --fn, --font <fontname> defines the application font --bg, --background <color> sets the default background color and an application palette (light and dark shades are calculated) --fg, --foreground <color> sets the default foreground color --btn, --button <color> sets the default button color --name <name> sets the application name --title <title> sets the application title (caption) --visual TrueColor forces the application to use a TrueColor visual on an 8-bit display --inputstyle <inputstyle> sets XIM (X Input Method) input style. Possible values are onthespot, overthespot, offthespot and root --im <XIM server> set XIM server --noxim disable XIM --reverse mirrors the whole layout of widgets SEE ALSO
Full user documentation is available through the KDE Help Center. You can also enter the URL help:/showfoto/ directly into konqueror or you can run `khelpcenter help:/showfoto/' from the command-line. (Note: The handbook is in the package digikam-doc.) AUTHORS
Renchi Raju <renchi at pooh.tam.uiuc.edu> Caulier Gilles <caulier dot gilles at free.fr> Ralf Holzer <kde at ralfhoelzer.com> This manual page was prepared by Achim Bohnet <ach@mpe.mpg.de> for the Debian GNU/Linux system (but may be used by others). K Desktop Environment Feb 2005 SHOWFOTO(1)
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy