Sponsored Content
Full Discussion: Remove newlines
Top Forums UNIX for Dummies Questions & Answers Remove newlines Post 302890908 by Suneelbabu.etl on Sunday 2nd of March 2014 08:54:17 AM
Old 03-02-2014
hi wisecracker,
the file name is bunny only but i entered into body box it take 'B' that's it..

I tried so many times but i didnt get where the fault occur, then only i sent u again.

To day night i implement this code..
plz Tel me...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk - need to remove unwanted newlines on match

Context: I need to remove unwanted newlines from a data file listing books and associated data. Here is a sample listing ( line numbers included ): 1 360762| Skip-beat! 14 /| 9781421517544| nb | 2008.| Nakamura, Yoshiki.| NAKAMUR | Kyoko Mogami followed 2 her true love Sho to Tokyo to... (6 Replies)
Discussion started by: Bubnoff
6 Replies

2. Shell Programming and Scripting

Transpose with two newlines as delimiter

Hi Guys, I have data in a file as follows: a 1 2 3 b 4 5 6 a 6 7 8 a 4 7 9 b 6 8 5 c 0 8 7 So the number of rows which have data is variable (2 for the first group, one for the second group and three for the third group), but the delimiters between the... (10 Replies)
Discussion started by: npatwardhan
10 Replies

3. Shell Programming and Scripting

Remove improperly placed newlines

Hello, there. I have a file that's a horrible, horrible mess. (Basically, it's an export from a firewall config.) The people who generated the file didn't think that putting a newline in the middle of a hostname would ever be a problem. It is. Here's an example of the stuff in the file: ... (2 Replies)
Discussion started by: mikesimone
2 Replies

4. Shell Programming and Scripting

sed remove newlines and spaces

Hi all, i am getting count from oracle 11g by spooling it to a file. Now there are some newline characters and blank spaces i need to remove these. pl provide me a awk/sed solution. the spooled file is attached. i tried this.. but not getting req o/p (6 Replies)
Discussion started by: rishav
6 Replies

5. Shell Programming and Scripting

Delete newlines after every one space

Hi All, I have a file which looks like this: abc 3456 computer 3214 printer 0.9823 computer 3214 Can anyone please let me know how I can format my text like this? abc 3456 computer 3214 printer 0.9823 computer 3214 I know how to space to newlines using tr but don't know how to do... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

6. Shell Programming and Scripting

removing newlines after a certain word.

Hello! This is my first post here. I have a file with text like: A</title> B C</title> D I need to format it to: AB CD I am trying to use sed: sed 's/<//title>\n/ /g' file > newfile to delete </title> and the newline character, but the file is unchanged because there are... (3 Replies)
Discussion started by: DaytonCPS
3 Replies

7. Shell Programming and Scripting

Need help with eliminating newlines with Perl

Good morning, I need some help with getting rid of newlines with the output from a MYSQL query and putting the information into the right format that I need. Here is the script as it is today: #!/usr/bin/perl my $uda = system("/opt/incontrol/mysql/bin/mysql -u root -ppassword... (2 Replies)
Discussion started by: brianjb
2 Replies

8. UNIX for Dummies Questions & Answers

Using find with awk to remove newlines

I want to list all html files present in a directory tree, the remove the newline and get one string with a space between files find /home/chrisd/Desktop/seg/geohtml/ -name '*.html' | awk BEGIN{FS=\r} '{print}' ---------- Post updated at 06:47 PM ---------- Previous update was at 06:25 PM... (5 Replies)
Discussion started by: kristinu
5 Replies

9. UNIX for Beginners Questions & Answers

Remove newlines and carriage return from a csv file using UNIX

I need to remove new lines and carriage returns from csv file. Is there anything other than sed and gwak by which we could achieve this ? Any suggestions ? (3 Replies)
Discussion started by: A_Gaddale
3 Replies

10. Shell Programming and Scripting

UNIX file with Newlines

Hi Friends, I have a data file with new lines. How to remove the newlines and should be showed in one line. I tried using the command tr -d '\n' filename sed 's/\n//g' file name Ex: 1 abc hyd is actual record but in our scenario showing it as 1 abc hydthis record should be like... (5 Replies)
Discussion started by: victory
5 Replies
hdate(1)							     libhdate								  hdate(1)

NAME
hdate - displays Hebrew date information for a given Gregorian/Julian date SYNOPSIS
hdate [options] [coordinates [timezone]] [[[dd] mm] yyyy] hdate [options] [coordinates [timezone]] [ julian_day ] coordinates: -l [NS]yy[.yyy] -L [EW]xx[.xxx] -l [NS]yy[:mm[:ss]] -L [EW]xx[:mm[:ss]] timezone: -z nn[( .nn | :mm )] DESCRIPTION
hdate translates the specified date to the Hebrew calendar and optionally displays further information about that Hebrew date, including holidays and astronomical-related times (see section LOCATION, below). If no arguments are given, it displays information for the current date. If a single numeric argument is given, it will be interpreted as a year, and hdate will output the requested information for all days of that year. If two numeric arguments are given, it will be interpreted as mm yyyy, and hdate will output the requested information for all days of that month. INPUTTING A HEBREW DATE: If the year provided is greater than 3000, hdate will interpret the given date as a Hebrew date, and will display information for the corresponding Gregorian date. Hebrew months are expected to be passed as numbers 1-12 for Tishrei - Elul; Adar I and Adar II are expected to be passed as months 13 and 14. INPUTTING A JULIAN DAY: If a single numeric argument is provided, and it is greater than 348021, hdate will interpret it as the "Julian day number" and will display information for the corresponding Hebrew date. OPTIONS
-b --bidi output Hebrew information in Hebrew, but in reverse --visual sequence. -c print Shabbat start/end times. Shabbat starts 20 min before sunset, and ends when three stars are out. -d --diaspora use diaspora reading and holidays. -h --holidays print holidays. -H Print only if it is a holiday. -i --ical use iCal formatted output. -j --julian print Julian day number. -o --omer print Sefirat Ha Omer -q --quiet-alerts quiet. suppress warning messages -r --parasha print weekly reading for Shabbat. -R print only if the weekly reading is read on that Shabbat -s --sun print sunrise/sunset times. -S --short-format print using short format. -t print day times: first light, talit, sunrise, mid day, sunset, first stars, three stars -T --table print tabular output. All data for each requested day will be output on a single comma-delimited line. Most suit- able for piping, or export to spreadsheets0TP -l --latitude [NS]yy[.yyy] decimal degrees, or [NS]yy[:mm[:ss]] degrees, minutes, seconds. Negative values are South -L --longitude [EW]xx[.xxx] decimal degrees, or [EW]xx[:mm[:ss]] degrees, minutes, seconds. Negative values are West -z --timezone +/-UTC. Notation may be in decimal hours ( hh[.hh] ) or hours, minutes ( hh[:mm] ) --hebrew forces Hebrew to print in Hebrew characters --yom force Hebrew prefix to Hebrew day of week --leshabbat insert parasha between day of week and day --leseder insert parasha between day of week and day --not-sunset-aware don't display next day if after sunset NOTES
LOCATIONS If you want hdate to display accurate time-of-day information, hdate requires location and time zone information in order to make astronom- ical calculations for a given date. If you don't provide ANY such information, hdate uses your computer's local time zone information as an indicator, and either picks a city in that time zone, or defaults to the equator at the center of that time zone. If hdate can't even retrieve time zone information from your computer, it defaults to Tel-Aviv. For other locations, use the -l -L option pair. For other time- zones, use the -z option. Co-ordinates and standard time zones for some common locations are listed below. The current defaults include: Timezone Default city Lattitude Longitude -5 New York City 40 -74 0 London 51 0 1 Paris 48 2 2 Tel-Aviv 32 34 3 Moscow 55 37 Useful locations and time zones Jerusalem 31, 35, 2 Buenos Aires 34, -58, -3 Tel Aviv 32, 34, 2 Hong Kong 22, 114, 8 Haifa 32, 34, 2 Los Angeles 34, -118, -8 Beer Sheva 31, 34, 2 Sao Paolo 23, -46, -3 Ashdod 31, 34, 2 Toronto 43, -79 -5 Tiberias 32, 35, 2 Eilat 29, 34, 2 FILES
CONFIG FILE This folder and file will be automatically created, and includes its own documentation, in-line: ${XDG_CONFIG_HOME}/hcal/hcalrc If ${XDG_CONFIG_HOME} is undefined: ~/.config/hcal/hcalrc BUGS
Accuracy The accuracy of the astronomically-derived data will suffer from not accounting for environmental conditions such as elevation, horizon, temperature and air pressure. Timezones The timezone support is currenlty primitive and lacks support for daylight savings time transitions. Historical The software does not yet account for the phenomenon and complications of the "Gregorian transition" from the prior, Julian cal- endar, which effectively caused an instantaneous 'loss' of two weeks for all gentiles affected. Countries (eg. Poland, Spain and Italy) began adopting the Gregorian calendar on 8 Tishrei 5343 (4 October 1582CE), although many did not transition until the 56th century (1752 CE, eg. UK colonies, Sweden). Russia did not adopt the Gregorian calendar until 5678 (1918 CE) and Turkey did not until 5687 (December, 1926 CE). Many other countries made the transition on other dates. Keep in mind that Russia invaded part of Poland, undoing, for the interim, the Gregorian transition for (only) that part of Poland; Also important to remember in this regard is that Eretz Ysroel was part of the Turkish Ottoman empire until the British mandate (5677 (1917CE)). Until all this is accounted for adequately by this application, refer to ' ncal -p ' for a basic table of country transitions. However, keep in mind that European borders underwent many changes during the 426 years in question, so the accuracy of your data will depend on accurate knowledge of whether any particular date at any specific location was Julian or Gregorian. EXAMPLES
1. Create an iCal calendar of the holidays of year 2025. hdate -Hi 2025 2. Print out the weekly readings and sunset/sunrise times for Eilat, on April 2031. hdate -sR 4 2031 -l29 -L34 -z2 SEE ALSO
mlterm(1), hcal(1), hebcal(1), date(1), ncal(1), cal(1), remind(1) AUTHORS
Boruch Baum 2011-2012. Yaacov Zamir 2005-2010. project page: http://libhdate.sourceforge.net hcal and hdate are part of the package libhdate , a small C/C++ library for Hebrew dates, holidays, and reading sequences (parashiot). It uses the source code from Amos Shapir's "hdate" package, as fixed and patched by Nadav Har'El. The Torah reading sequence tables were con- tributed by Zvi Har'El. Linux 2012-01-01 hdate(1)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy