Sponsored Content
Top Forums Shell Programming and Scripting creating file of 1MB using shell command? Post 302070333 by vino on Tuesday 4th of April 2006 06:00:23 AM
Old 04-04-2006
Look into man dd. Or better yet info dd
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with a shell script for creating a log file

I have a schell script that runs continously on an AIX system. It is actually started from another shell script with the "ksh -x" command and then I just write the output to a log file. This causes the log files to be filled with mostly useless information. I would like to modify this script to... (2 Replies)
Discussion started by: heprox
2 Replies

2. Shell Programming and Scripting

Creating a command history feature in a simple UNIX shell using C

I'm trying to write a history feature to a very simple UNIX shell that will list the last 10 commands used when control-c is pressed. A user can then run a previous command by typing r x, where x is the first letter of the command. I'm having quite a bit of trouble figuring out what I need to do, I... (2 Replies)
Discussion started by: -=Cn=-
2 Replies

3. UNIX for Dummies Questions & Answers

Creating a file that contains output from a command, and then displays itself

hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards. I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies

4. Shell Programming and Scripting

Creating a command on a BASH shell

Hi all. Suppose I have the following function in an executable file named "HOLA": ------------------------ function hola { echo "Hola ${@}."; } ------------------------ In addition, suppose that I want to execute the file so I can input my name next to ./HOLA. I mean,... (4 Replies)
Discussion started by: hresquivelo
4 Replies

5. UNIX for Dummies Questions & Answers

Creating File using the CAT Command

Hello , I am newbie to UNIX platform . I have read that there are two ways of creating files that is using 1.) Cat 2.) touch . With Cat Command i am unable to create a File , i is saying No file or Directory exists I logged in with root as user . please help (7 Replies)
Discussion started by: Ravi Pavanv
7 Replies

6. UNIX for Dummies Questions & Answers

rename a file if it exceeds 1MB in size

Hi all. I am trying to write a script that renames a logfile if it exceeds roughly 1 MB. My find command is: find some_logfile -type f -size +20000 Now I want to do my processing if it finds a file or not... How can I go about this? The $? is 0 if it finds a file or not. All... (4 Replies)
Discussion started by: jamie_collins
4 Replies

7. UNIX Desktop Questions & Answers

creating an executable file from shell scripts

Hi Friends, I have a shell script which does some operations etc, would it be possible to create an executable file out from this shell script? meaning the executable file is not editable, thus the source code will not be visible to other users for copyright reasons. Please help, thanks! (1 Reply)
Discussion started by: kokoro
1 Replies

8. Shell Programming and Scripting

Shell Scripting for creating ftp and transfer file

Dear All, We run backup script to update backup file every hour. I want to create a script, which transfer these files in another server using ftp as new backup file created every hour. Files should be stored with a unique name for every hour(e.g 20130708_13:00 , 20130708_14:00 and so on) and... (13 Replies)
Discussion started by: Preeti Saini
13 Replies

9. UNIX for Beginners Questions & Answers

Creating file and passing argument to a command

Hi All, I am having command to run which will take argument as input file. Right now we are creating the input file by cat and executing the command ftptransfer -i input file cat >input file file1 file2 cntrl +d Is there a way I can do that in a single command like ... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

10. Shell Programming and Scripting

Creating an excel file with filters using shell script.

Hi All, I am new to shell scripting. I have made a script that can convert an excel file from cvs file. This excel file contains hundreds of records and i would like the reader to be able to filter. Is it possible to create an excel file with filters? or that functionality has not been... (3 Replies)
Discussion started by: Marvin159875321
3 Replies
GIT-HELP(1)							    Git Manual							       GIT-HELP(1)

NAME
       git-help - Display help information about Git

SYNOPSIS
       git help [-a|--all] [-g|--guide]
		  [-i|--info|-m|--man|-w|--web] [COMMAND|GUIDE]

DESCRIPTION
       With no options and no COMMAND or GUIDE given, the synopsis of the git command and a list of the most commonly used Git commands are
       printed on the standard output.

       If the option --all or -a is given, all available commands are printed on the standard output.

       If the option --guide or -g is given, a list of the useful Git guides is also printed on the standard output.

       If a command, or a guide, is given, a manual page for that command or guide is brought up. The man program is used by default for this
       purpose, but this can be overridden by other options or configuration variables.

       Note that git --help ... is identical to git help ... because the former is internally converted into the latter.

       To display the git(1) man page, use git help git.

       This page can be displayed with git help help or git help --help

OPTIONS
       -a, --all
	   Prints all the available commands on the standard output. This option overrides any given command or guide name.

       -g, --guides
	   Prints a list of useful guides on the standard output. This option overrides any given command or guide name.

       -i, --info
	   Display manual page for the command in the info format. The info program will be used for that purpose.

       -m, --man
	   Display manual page for the command in the man format. This option may be used to override a value set in the help.format configuration
	   variable.

	   By default the man program will be used to display the manual page, but the man.viewer configuration variable may be used to choose
	   other display programs (see below).

       -w, --web
	   Display manual page for the command in the web (HTML) format. A web browser will be used for that purpose.

	   The web browser can be specified using the configuration variable help.browser, or web.browser if the former is not set. If none of
	   these config variables is set, the git web--browse helper script (called by git help) will pick a suitable default. See git-
	   web--browse(1) for more information about this.

CONFIGURATION VARIABLES
   help.format
       If no command-line option is passed, the help.format configuration variable will be checked. The following values are supported for this
       variable; they make git help behave as their corresponding command- line option:

       o   "man" corresponds to -m|--man,

       o   "info" corresponds to -i|--info,

       o   "web" or "html" correspond to -w|--web.

   help.browser, web.browser and browser.<tool>.path
       The help.browser, web.browser and browser.<tool>.path will also be checked if the web format is chosen (either by command-line option or
       configuration variable). See -w|--web in the OPTIONS section above and git-web--browse(1).

   man.viewer
       The man.viewer configuration variable will be checked if the man format is chosen. The following values are currently supported:

       o   "man": use the man program as usual,

       o   "woman": use emacsclient to launch the "woman" mode in emacs (this only works starting with emacsclient versions 22),

       o   "konqueror": use kfmclient to open the man page in a new konqueror tab (see Note about konqueror below).

       Values for other tools can be used if there is a corresponding man.<tool>.cmd configuration entry (see below).

       Multiple values may be given to the man.viewer configuration variable. Their corresponding programs will be tried in the order listed in
       the configuration file.

       For example, this configuration:

		   [man]
			   viewer = konqueror
			   viewer = woman

       will try to use konqueror first. But this may fail (for example, if DISPLAY is not set) and in that case emacs' woman mode will be tried.

       If everything fails, or if no viewer is configured, the viewer specified in the GIT_MAN_VIEWER environment variable will be tried. If that
       fails too, the man program will be tried anyway.

   man.<tool>.path
       You can explicitly provide a full path to your preferred man viewer by setting the configuration variable man.<tool>.path. For example, you
       can configure the absolute path to konqueror by setting man.konqueror.path. Otherwise, git help assumes the tool is available in PATH.

   man.<tool>.cmd
       When the man viewer, specified by the man.viewer configuration variables, is not among the supported ones, then the corresponding
       man.<tool>.cmd configuration variable will be looked up. If this variable exists then the specified tool will be treated as a custom
       command and a shell eval will be used to run the command with the man page passed as arguments.

   Note about konqueror
       When konqueror is specified in the man.viewer configuration variable, we launch kfmclient to try to open the man page on an already opened
       konqueror in a new tab if possible.

       For consistency, we also try such a trick if man.konqueror.path is set to something like A_PATH_TO/konqueror. That means we will try to
       launch A_PATH_TO/kfmclient instead.

       If you really want to use konqueror, then you can use something like the following:

		   [man]
			   viewer = konq

		   [man "konq"]
			   cmd = A_PATH_TO/konqueror

   Note about git config --global
       Note that all these configuration variables should probably be set using the --global flag, for example like this:

	   $ git config --global help.format web
	   $ git config --global web.browser firefox

       as they are probably more user specific than repository specific. See git-config(1) for more information about this.

GIT
       Part of the git(1) suite

Git 2.17.1							    10/05/2018							       GIT-HELP(1)
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy