Search Results

Search: Posts Made By: Quesa
2,719
Posted By Quesa
Sorry ignore my last question. I found the...
Sorry ignore my last question. I found the command stat which seems to do what I'm looking for
2,719
Posted By Quesa
getting user info on a file
I know this is prob a simple question but anyway here goes. I want to find out the owner of a certain file. I also want to find out what permissions that owner has. Is their any command that is...
1,921
Posted By Quesa
Thanks for that. :)
Thanks for that. :)
1,921
Posted By Quesa
Using grep
I'm using grep and it returns all the lines which are relavent but some of these lines are the very same. Is their anyway I can make it return only the lines that are Distinct.
1,802
Posted By Quesa
You where right it works when I use the line : ...
You where right it works when I use the line :
sed -n "$count p" $2 >> tempfile

but not when i use:
sed -n '$count p' $2 >> tempfile


Yet at the command promt if I use say somthing like
...
1,802
Posted By Quesa
I've looked at dd and I don't know if it will...
I've looked at dd and I don't know if it will work with what I am trying to do. From what i gather dd seems very good at copying with control on blocks. But i need to input a line in a particlar...
1,802
Posted By Quesa
sed
I had it in double qoutes but in despair took them off. Cheers on the dd I'll have a look at it and see if it helps.
1,802
Posted By Quesa
TRAILER!! Output
I run my script which i wrote which has the job of inputing a line of text into a certain place in a file. When i run the script i get an error which relates to one line of code as shown below:
...
3,433
Posted By Quesa
Removing the quotes
I removed the quotes as you said but it doesn't change anything. I still get the same errors as before.
3,433
Posted By Quesa
Problem with Maths
Heres a script i wrote as a bit of practise. What it does is insert a line in the middle of a file. The line being $1 and the file being $2


#!/bin/bash

rm tempfile
touch tempfile

count=1...
2,212
Posted By Quesa
cheers
Cheers mate
2,212
Posted By Quesa
No. of lines in a file (For scripting)
I'm trying to get the number of lines in a file. I know their are a number of ways of doing this like wc -l or nl which lists the file with the line number. The problem is that I want to use the...
2,721
Posted By Quesa
Thanks that helpled me out
Thanks that helpled me out
2,721
Posted By Quesa
Getting a line of a file by number
I was wondering if their is a command that will output a line of a file by number. I mean i know how number a file but what i'm looking for is to pull a line out of a file by refering to its line...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 01:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy