Sponsored Content
Full Discussion: Unix basic help
Top Forums UNIX for Dummies Questions & Answers Unix basic help Post 302086541 by carrera911 on Thursday 24th of August 2006 06:39:23 PM
Old 08-24-2006
Unix basic help

What command would I use to list the first lines of all
text files within my Unix directory or within any directory
inside there? I was using "find" , "head" and "-exec" commands like this:

find ~/Unix -name "*.txt" -exec head {} \;

But its not perfectly working, please help me. thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix basic commands

I need a sheet with the basic unix commands , and commands for VI editor. Does anyone know where i can get them. (3 Replies)
Discussion started by: Peter Spellman
3 Replies

2. UNIX for Dummies Questions & Answers

Basic unix

okay, im having some trouble. Go ahead, call me a retard, but i keep getting stuck. Suppose i want to open a Picture of Jesus(for the sake of simplicity) using unix. I type: open Desktop/Pictures/Jesus.jpg It opens, and its all well and good. But, suppose i want to open a picture called Joe... (4 Replies)
Discussion started by: HipCracka
4 Replies

3. IP Networking

basic question about UNIX?

With not knowing absolute nothing about Unix can anyone let me in on how it is setup and how easy is it to learn?I'm using MML Commands and know that it is completely different but if I start learning commands in UNIX is that a good way to get started? (1 Reply)
Discussion started by: RoliOCon
1 Replies

4. UNIX for Dummies Questions & Answers

Basic Unix Questions

OK, here's a question from a true UNIX newb: How does one make a 20 line file? I'm lost. :confused: OK, I figured it out. :D (0 Replies)
Discussion started by: Kitchen Zinc
0 Replies

5. UNIX for Dummies Questions & Answers

Need help with basic unix script

What I am supposed to do is creat a menu with the following Find a song Find a album Sort by artist Delete a song Add a new song Quit Now the file with the song information is database Here is what I have so far #!/bin/bash #================================================= #Script Name:... (1 Reply)
Discussion started by: stp0052
1 Replies

6. Solaris

basic unix question

Hello, I'm new to solaris and have an experience with linux. When we see network interface I can see qfe, hme, le0. What is that mean? Is it depend on the network card? (11 Replies)
Discussion started by: mokkan
11 Replies

7. Solaris

Basic FAQS in unix

can any body tell me this followings in details when do we use this & in which senario we most use this 1.GSD raising 2.MOSFET checks 3.Audit remedation 4.KBS fixes thanks in advance (0 Replies)
Discussion started by: wkbn86
0 Replies

8. UNIX for Dummies Questions & Answers

Basic UNIX Training

I'm wondering where a good place to start is for basic UNIX training. Due to a shift of responsibilities at work, I am now the admin for a product called AutoSys. I have close to zero knowledge in the subject area. :wall: (3 Replies)
Discussion started by: Cjw_55106
3 Replies

9. Shell Programming and Scripting

Basic Unix cp command help

I am new to unix so this is probably a pretty basic question. I am trying to write several commands on one line that creates a directory called bf in the current directory, then copy all files within that directory and any subdirectories, that do not start with the letter c to the new bf folder.... (5 Replies)
Discussion started by: scotty85
5 Replies

10. Shell Programming and Scripting

Basic doubt in UNIX

Hi, I'm new to this and very much interested to learn unix. Can any one explain me the symbols y we use this is scripting(~ and $). It would be great if some one explain with the eg. Thanks Naveen A (2 Replies)
Discussion started by: Pranaveen
2 Replies
HEXBIN(1)						      General Commands Manual							 HEXBIN(1)

NAME
hexbin - Macintosh file de-binhexer SYNOPSIS
hexbin [ - options ] [ files ] DESCRIPTION
hexbin takes the text files specified in files (or standard input if none is specified) and converts them subject to the options specified. OPTIONS
In the absence of any options, hexbin takes the specified files and silently converts them into MacBinary format, giving the output files ".bin" extensions and placing them in the current working directory. -3 Write files in fork format (.info, .data and .rsrc files.) -f As -3, but empty data and rsrc files are not created. -r Write resource forks only (.rsrc files.) -d Write data forks only (.data files.) -u As -d, but the codes for CR and LF are interchanged, the filename extension is .text. -U As -u, but there is no filename extension. -a Write files in AppleShare format. This option is only valid if the program is compiled with support for some form of AppleShare. The current directory must be a valid AppleShare folder. -s Write extracted files to standard output in MacBinary format. -l List every file extracted (and every directory/folder created etc.) -v Like -l, but more verbose. When this option is specified all lines skipped because they do not belong to the hexified format are listed (implies -l.) -i Do not convert, give information only (implies -l.) -c Do not check whether the hexified lines have equal size. Normally the hexifiers gives text files with equal length line size, hexbin uses this in its heuristics to determine whether a line must be skipped. There are however hexified files that do not con- form to that pattern. If this option is specified hexbin will in general be unable to detect whether a line is garbage or not, so you have to remove the garbage by hand. -n name Gives the Unix base file name for the converted files. For files hexified with BinHex 4.0 or compatible hexifiers this flag is not needed; hexbin will determine the Unix file name based on the Mac file name. For files in dl, hex or hcx format this parameter may be needed as these formats do not include the Mac filename. Normally hexbin will in those cases base the Unix file name on the text file name, but that can be overruled with this parameter. -V Gives the patchlevel of the program, and other information. Other options are ignored and the program quits immediately. -H Give short information about the options. Other options are ignored and the program quits immediately. BUGS
As this is a beta release, there may still be some problems. SEE ALSO
macutil(1) AUTHOR
Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl) Parts of the code are based on codes from: ahm (?), Darin Adler, Jim Budler, Dave Johnson, Dan LaLiberte, Jeff Meyer, Guido van Rossum. 3rd Berkeley Distribution October 22, 1992 HEXBIN(1)
All times are GMT -4. The time now is 08:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy