9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need some advise on whether there is a better way of doing what I am currently planning to do. Perhaps I should be using arrays instead of re-directing output to files?
I need to use a tool/program named ADRCI provided by Oracle to remove trace files that it generates. Honestly it is... (1 Reply)
Discussion started by: newbie_01
2. UNIX for Dummies Questions & Answers
i have lots of files in /law/prod and /law/dev, such as AP20PD, AP20WS, AP20.scr, AP20.rpt
if i am in /law DIR
find . -name AP20PD, found in /law/prod and /law/dev
i want to head -1 AP20PD from both location and >> /tmp/test.log
can i use find and head in one line ?
----------... (1 Reply)
Discussion started by: tjmannonline
3. Shell Programming and Scripting
I know that the common use of head is for example head -3 etc.Is there any possibility that,if i have a variable that equals to an integer(i=5),i can write head -i??
If not,what syntax or commands should i write down in order to have the same result?
//maybe something lik head -"$variable" ? (2 Replies)
Discussion started by: bashuser2
4. Shell Programming and Scripting
Im looking for a 'relatively' easy way to search through cvs to look for a particular string in the HEAD revisions.
I realize the way CVS stores versions makes this difficult. But I'm trying to come up with some script to allow this search (performance is not expected here).
Currently this... (0 Replies)
Discussion started by: bobtheowl2
5. Shell Programming and Scripting
head -n $ct file.
When i used like this, i got an error , Bad usage of head
Cant we use variables in place of number in HEAD.
In my requirement for every iteration i should increase the number in Head and tail the last one.
HOw can i achieve this (5 Replies)
Discussion started by: vasuarjula
6. Shell Programming and Scripting
I am new to UNIX......I have one file which contains thousnads of records with header and tailer.
I want to concatenate Header and Trailer in the first line....now the output should look like this:
Header: Header value, Trailer:... (2 Replies)
Discussion started by: 33junaid
7. Shell Programming and Scripting
How can the head command be used to extract only a particular line.
By default head -n filename displays the first n lines. I want only the nth line.
I couldn't get it from forum search.
Sumesh (6 Replies)
Discussion started by: sumesh.abraham
8. UNIX for Dummies Questions & Answers
I've a major file which includes other files and now I wanna 'cut' the file in several minor parts....like
find / -name "*.tmp" >filea
wc -l filea >fileb
sed -e '1s/ filea//' fileb >filec
if ; then
cat file a |head -100l (ell) |tail -100l >filec
cat file a |head... (6 Replies)
Discussion started by: svennie
9. UNIX for Dummies Questions & Answers
my boss has done it again
I have been sent to fix a unix issue
and I ma hoping you can help
1st. I have a printer that when you try to print to it the print job comes out on a diffrent printer. If I take the printer ( dot matrix thourgh a serail connection) to a diffrent local the... (3 Replies)
Discussion started by: oberon42