top command
Category: UNIX-Unix Beginner
Read More...
![]() |
|
Category: UNIX-Unix Beginner
reading a zipped file without unzipping it?
dear all,
i would like to ask how i can read a zipped file (file.gz) without actually unzipping it?
i think there is a way to do so but i can't remember it..
can anyone help?
Category: UNIX-Unix Beginner
ftp help
does anyone know why i can't transfer a directory containing files from a remote directory to a local directory using psftp. if i take the file out of the directory but put it in the same place as where the directory was then i can get that file using psftp's get file command. does not work for the directory (holding folder) though. could it have something to do with permissions?
Category: UNIX-Unix Beginner
help needed in basic unix
hi friends,
how to obtain list of groups we r a member of and redirect it to a file.
how to append the details of current os to a file.
how to append the estimated file space to a file.
how to append the details of users loged on along wth their current activity into a file.
thank you...i'm alien to unix os.
Category: UNIX-Unix Beginner
freebsd & red hat
hi,
i'm a total new beginner to unix!
i am currently looking to move a website i own from my existing web hosts to rackspace.
my website currently runs from a server using the freebsd unix variant operating system but rackspace seem to think if i move it to them i can still run everything without a hitch with the operating system they use - red hat.
as a unix virgin i have no idea if this is viable or not?
would really appreciate your comments!
Category: UNIX-Unix Beginner
grep -f question
when using grep -f file1 file2
if you have multiple entries in the pattern file1 that are the same will it take the line out of file2 that matches file1 each time it comes up? if not by default can you set a flag to make this possible? or another way - can you get it to search for and match the same pattern more than once?
Category: UNIX-Unix Beginner
how to get rid of "^m" from sql query
i've searched the net and tried various solutions that don't work for me.
i'm trying to return values from a sql query and i keep getting a "^m" appended to one field.
code:
getting data from table
select * from table...
spooling to $home/out.log
...
wf_data=`tail -7 $home/out.log | awk '{print $1}'` assigning the values to wf_data variable
echo $wf_data > $home/out.log returning the data to out.log ... (may be dumb way but it works.. i need it for formatting purposes
wf=`tail -1 $home/out.log | awk '{print $1}'` #getting workflow
f=`tail -1 $home/out.log | awk '{print $2}'` #getting folder
s=`tail -1 $home/out.log | awk '{print $3}'` #getting server
u=`tail -1 $home/out.log | awk '{print $4}'` #getting user
p=`tail -1 $home/out.log | awk '{print $5}'` #getting pass
variable wf is having the "^m" appended to it.
any suggestions as to how to remove it?
(i tried sed -i '' "s/\r//g" $home/out.log (along with other variations) right after the sql statements and other sections - didn't work)
Category: UNIX-Unix Beginner
return value
how do i find out the return value of a shell script or program in unix?
is there a command to find that out??