02-21-2008
to direct to a file
example:
du -k >sample.txt
the > redirects output
and you can type any filename and/or use folders
(you could >/tmp/mystuff/sample.txt for instance)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am user Of linux 9.0 Operating System and I had data form unix Operating system and I am not abel to open it in linux 9.0 Please tell me how can i use unix data in linux . (3 Replies)
Discussion started by: harsh_guru
3 Replies
2. Shell Programming and Scripting
I'm not a unix guy so excuses my ignorance... I'm the database ETL guy.
I'm trying to be proactive and devise a plan B for a ETL process where I expect a file 10X larger than what I process daily for a recast job. The ETL may handle it but I just don't know.
This file may need to be split... (3 Replies)
Discussion started by: john091
3 Replies
3. Shell Programming and Scripting
hay every body
i need script like bdf -h in hp-ux there is no option like solaris df -h
it is only bdf -k so i need the output with GBytes (8 Replies)
Discussion started by: maxim42
8 Replies
4. UNIX for Dummies Questions & Answers
Hello all.
I have an incredible number of servers that I need to change a parameter on using a web interface. I'd like to be able to do this via curl, but I'm having some trouble. I filled out the form and hit update while snooping (tcpdump) my interface. That gave the the following as what is... (0 Replies)
Discussion started by: DeCoTwc
0 Replies
5. Programming
i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char.
why is a size of a int (4 bytes) bigger then the size of a char (1 byte)?
also if i do &a-&b i get 1, but if i... (30 Replies)
Discussion started by: omega666
30 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I want to list all the directories present in a particular location and want to display their sizes as well. I know "ls -lh" but it doesn't show the size of the complete directory. So i want something like
dir1 266 MB
dir2 2 KB
dir3 22 MB
...
...
file1 10 Kb
.....
Thanks
Sarbjit (4 Replies)
Discussion started by: sarbjit
4 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am having a file which is required to be presented in the under-noted output form. Please suggest.
Input:
Kapil:
apple 4
banana 6
cherry 0
Manoj:
apple 13
banana
cheery 2
Output:
apple banana cherry
Kapil: 4 6 0
Manoj: 13 2
Thanks in... (4 Replies)
Discussion started by: vanand420
4 Replies
8. Shell Programming and Scripting
HI Guys,
I have data in File A.txt
RL03 RL03_A_1 RL03_B_1 RL03_C_1
RL03 -119.8 -119.5 -119.5
RL07 RL07_A_1 RL07_B_1 RL07_C_1
RL07 -119.3 -119.5 -119.5
RL15 RL15_A_1 RL15_C_1
RL15 -120.5 -119.4
RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies
9. Shell Programming and Scripting
Need assistance in getting File size for the List of files using perl script . I have writtern 2 codes. One of them gives me the list of files and 2nd one give me the size for only 1 file.
I dont know how to club both of them to get the list of files with its size .
#!/usr/bin/perl -w... (11 Replies)
Discussion started by: ajayram_arya
11 Replies
10. Shell Programming and Scripting
Hi,
I have a csv file from which i am fetching few columns as below:
IFILE=/home/home1/Report1.csv
OFILE=/home/home1/`date +"%m%d%y%H%M%S"`.dat
if #Checks if file exists and readable
then
awk -F "," '(NR>4) {print $1,$6,$2,$3,$4,$5,$6}' ${IFILE} >> ${OFILE}
fi
cat $OFILE | mail... (7 Replies)
Discussion started by: Vivekit82
7 Replies
LEARN ABOUT DEBIAN
git-cat-file
GIT-CAT-FILE(1) Git Manual GIT-CAT-FILE(1)
NAME
git-cat-file - Provide content or type and size information for repository objects
SYNOPSIS
git cat-file (-t | -s | -e | -p | <type> | --textconv ) <object>
git cat-file (--batch | --batch-check) < <list-of-objects>
DESCRIPTION
In its first form, the command provides the content or the type of an object in the repository. The type is required unless -t or -p is
used to find the object type, or -s is used to find the object size, or --textconv is used (which implies type "blob").
In the second form, a list of objects (separated by linefeeds) is provided on stdin, and the SHA1, type, and size of each object is printed
on stdout.
OPTIONS
<object>
The name of the object to show. For a more complete list of ways to spell object names, see the "SPECIFYING REVISIONS" section in
gitrevisions(7).
-t
Instead of the content, show the object type identified by <object>.
-s
Instead of the content, show the object size identified by <object>.
-e
Suppress all output; instead exit with zero status if <object> exists and is a valid object.
-p
Pretty-print the contents of <object> based on its type.
<type>
Typically this matches the real type of <object> but asking for a type that can trivially be dereferenced from the given <object> is
also permitted. An example is to ask for a "tree" with <object> being a commit object that contains it, or to ask for a "blob" with
<object> being a tag object that points at it.
--textconv
Show the content as transformed by a textconv filter. In this case, <object> has be of the form <treeish>:<path>, or :<path> in order
to apply the filter to the content recorded in the index at <path>.
--batch
Print the SHA1, type, size, and contents of each object provided on stdin. May not be combined with any other options or arguments.
--batch-check
Print the SHA1, type, and size of each object provided on stdin. May not be combined with any other options or arguments.
OUTPUT
If -t is specified, one of the <type>.
If -s is specified, the size of the <object> in bytes.
If -e is specified, no output.
If -p is specified, the contents of <object> are pretty-printed.
If <type> is specified, the raw (though uncompressed) contents of the <object> will be returned.
If --batch is specified, output of the following form is printed for each object specified on stdin:
<sha1> SP <type> SP <size> LF
<contents> LF
If --batch-check is specified, output of the following form is printed for each object specified on stdin:
<sha1> SP <type> SP <size> LF
For both --batch and --batch-check, output of the following form is printed for each object specified on stdin that does not exist in the
repository:
<object> SP missing LF
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-CAT-FILE(1)