How to verify weather it is a ebcdic file or not


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to verify weather it is a ebcdic file or not
# 1  
Old 04-03-2008
How to verify weather it is a ebcdic file or not

Hi all,

Please tell me how to verify weather it is a ebcdic file or not . I checked with file commond but it is giving like International Language text.

Regards,
Chaitu
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Check if file is EBCDIC or ASCII format

So, i have this requirement where i need to check the file format, whether it's EBCDIC or ASCII, and based on format retrieve the information from that file: my file is: file1.txt-->this ebcdic file file2.txt-->ascii file i tried below code: file=file1.txt type="`file $file`" i get... (7 Replies)
Discussion started by: gnnsprapa
7 Replies

2. UNIX for Beginners Questions & Answers

Convert EBCDIC(.DAT) FILE into ASCII FILE

Hi Team, I am having 100 EBCDIC files (i.e. DAT extension) and need to convert them into ASCII File by unix shell script. I tried with DD Command but its not providing output as expected. Sample Text: ------------------ גהאבדוחס@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Expected Output:... (2 Replies)
Discussion started by: JSM
2 Replies

3. UNIX for Dummies Questions & Answers

Eliminate Header and footer from EBCDIC file

Is there any command to eliminate Header and footer from EBCDIC file (4 Replies)
Discussion started by: abhilashnair
4 Replies

4. Shell Programming and Scripting

Use PYTHON to collect data weather and print in new file

Hi all, i have a task to do with Python and because i'm a beginner on it i would like your help on this. Create a python script that: Every hour collect the Temperature (e.g. 29C) and Current Condition (e.g. Clear) from this website wunderground.com/global/stations/54511.html Create a CSV... (0 Replies)
Discussion started by: ragaga123
0 Replies

5. Red Hat

Unable to convert EBCDIC file to ASCII file

Hello all, To give you all a little bit of background. We recently migrated from HP-UX to Redhat Linux and one of the command I used to run on HP-UX to convert an EBCDIC file to ASCII file isn't working on Linux. The code is as follow: cat workout2.dat | dd cbs=250 conv=block conv=ascii... (3 Replies)
Discussion started by: sethmj
3 Replies

6. HP-UX

how to encrypt a file with ebcdic conversion

Hi guys! My sql*plus program generating dat file. so this dat file i want to write in destination sever path with ebcdic formate through SFTP only, because my destination server is mainframe it can read only ebcdic formate files only. could you please help on this........ i was written... (3 Replies)
Discussion started by: sgangadhar19
3 Replies

7. Shell Programming and Scripting

How to check if the file has EBCDIC or ascii characters

Hi, is there a way to check if the initial few characters are ebcdic or ascii in a file? (1 Reply)
Discussion started by: ahmedwaseem2000
1 Replies

8. Linux

Check weather a file is in use or not?

Hi, Hi want to check weather a file is being used by using a command or java code or shell script. So, can any body give me some idea.. Thanks Buddhika (3 Replies)
Discussion started by: cse.buddhika
3 Replies

9. Shell Programming and Scripting

save weather radar to local time-named file every 15 minutes

I think I can do this myself now, but I am always amazed by how people can do things cleaner and simpler than I end up doing... Using cron, I want to save the image found at: http://radar.weather.gov/ridge/Conus/RadarImg/centgrtlakes.gif every 15 minutes to a local file , such as ... (1 Reply)
Discussion started by: brucewestfall
1 Replies

10. Shell Programming and Scripting

how to check weather file is blank or not?

Dear All I want to do following task. Kindly suggest. In my script every hour one file is genarated. say xyz.txt. Now if this file contain some data then i want to do task A and if file is blank then i want to do nothing. Kindly help me to do this. regards jaydeep (5 Replies)
Discussion started by: jaydeep_sadaria
5 Replies
Login or Register to Ask a Question
weatherrc(5)							File Formats Manual						      weatherrc(5)

NAME
weatherrc - configuration file format for the weather(1) utility DESCRIPTION
The weatherrc file format is intended to specify a set of aliases by which to group URIs for METAR station conditions and alert/forecast zones, but other command-line options and flags for the weather utility can be specified as well. The file is organized as an INI-format config, with the alias name in [] brackets and the associated parameter/value pairs on following lines. Parameters and their values are separated by = or : characters. Multi-word values do not need quoting. These parameters are supported... alert include local alert notices (possible values are False and True or 0 and 1) atypes list of alert notification types to display (ex: tornado_warning,urgent_weather_message) cache control all caching (possible values are False and True or 0 and 1) cache_data control retrieved data caching (possible values are False and True or 0 and 1) cache_search control search result caching (possible values are False and True or 0 and 1) cacheage duration in seconds to refresh cached data (ex: 900) cachedir directory for storing cached searches and data (ex: ~/.weather) conditions output current conditions (possible values are False and True or 0 and 1) defargs list of default command-line arguments (ex: avl,rdu) forecast include a local forecast (possible values are False and True or 0 and 1) headers list of conditions headers to display (ex: temperature,wind) imperial filter/convert conditions for US/UK units (possible values are False and True or 0 and 1) metric filter/convert conditions for metric units (possible values are False and True or 0 and 1) quiet skip preambles and don't indent (possible values are False and True or 0 and 1) setpath directory search path for correlation sets (ex: .:~/.weather) verbose show full decoded feeds (possible values are False and True or 0 and 1) EXAMPLES
The following is an example ~/.weather/weatherrc defining a couple aliases named home and work to be displayed when running the utility with no aliases specified... [default] defargs = home,work [home] description = Conditions and Forecast at Home forecast = True metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KRDU.TXT zone_forecast = http://weather.noaa.gov/pub/data/forecasts/zone/nc/ncz041.txt [work] description = Conditions at Work metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KGSO.TXT Now if weather is invoked by itself on the command line, it will output conditions for home and work, and also a forecast for home only. AUTHOR
Specification and manual written by Jeremy Stanley <fungi@yuggoth.org>. SEE ALSO
weather(1) 2.0 2012-06-24 weatherrc(5)