Search Results

Search: Posts Made By: charbel
10,575
Posted By charbel
how about using for loop or splitting the files...
how about using for loop or splitting the files into smaller ones? do you think this might work?

Can you help me little with the for loop code as it will be my first time to use it.
10,575
Posted By charbel
I really appreciate your help....The filesystems...
I really appreciate your help....The filesystems are locally mounted and there is no problem in the filesystem.
10,575
Posted By charbel
Are the variables $year, $month and $day actually...
Are the variables $year, $month and $day actually set (i.e. otherwise you're generating a report based on possibly every *.TLG file)?

Yes the variables are right. I have checked it again and for...
10,575
Posted By charbel
I have tried both options but unfortunately, the...
I have tried both options but unfortunately, the problem is still the same!
10,575
Posted By charbel
awk & CPU Load
Deal All,

I'm writing a simple awk to generate some sort of report. The awk will check 24 files (file generated each one hour in a wholoe day) and then it will print one field to another file for...
12,140
Posted By charbel
You have mixed everything up...the first advise...
You have mixed everything up...the first advise you were given is to use sleep command but as per your response that this depends on file size and CPU speed,...etc.....then a script was provided and...
20,628
Posted By charbel
Is that number composed of 5 digits only? if...
Is that number composed of 5 digits only?
if YES, then you can use the awk command and you can print that substring only....

code:
cat input.txt|awk 'BEGIN {FS=":"} {print substr($2,1,5)}'
...
1,792
Posted By charbel
Restoration issue
Dear All,

I am using sun OS server and performing weekly backup on a tape DDS2 for log files for the past 7 days, the log file sizes are ranging between 1 - 2 G......When i want to restore a...
26,646
Posted By charbel
No, i want to comapre to compare the name of the...
No, i want to comapre to compare the name of the two files.
26,646
Posted By charbel
Compare file names
Hi everyone,

How to compare between two filenames, in case the current filename is the same as the last one an alarm to be sent, in case the current filename is different from the last filename,...
2,068
Posted By charbel
Modifying the final output file
Hey all,

I am haivng n number of files all of them are of the same format but different details. i.e

File1 is having the folloeing details:
"Account1",123
"Account2",10
"Account3",12355...
1,391
Posted By charbel
awk question
hey all,

what is the difference between awk & nawk. i went through man pages for both commands but i did not understand the main idea behind nawk and for what purpose it can be use.

Anyone can...
9,168
Posted By charbel
What i am trying to solve is this: I have been...
What i am trying to solve is this:
I have been reuested by manager to create 6 users on unix server machine. 3 users to have the same privilage as the root user(they can add/remove users, reboot or...
9,168
Posted By charbel
how about if i want to add a new user and give...
how about if i want to add a new user and give him just the same privlege as the root?....i know i am asking too much but i want to get the principle behind all this....
9,168
Posted By charbel
What i want to do is to create a directory having...
What i want to do is to create a directory having the commands that a specific user can execute....the only way i know is to create a directory have symbolic link of the commands that i want that...
9,168
Posted By charbel
Creating symbolic link
Any idea how to create a symbolic link...for example i want to create a symbolink link for a specific user in his profile to use the df command...?

Thanks in advance
1,659
Posted By charbel
root user (urgent!!)
I am working on unix server, right now i have a task to do which is to create 7 users, 3 of them must have the same privilige of the root user and the rest to be normal users (i.e they are not...
4,331
Posted By charbel
No Help !!
No Help !!
6,341
Posted By charbel
well first of all you have to tell your...
well first of all you have to tell your environment which shell you are using, suppose your are using the bash shell then the script file would like:

#!/bin/bash

#The beginning of your script...
4,331
Posted By charbel
I agree with u that the .*_history stores the...
I agree with u that the .*_history stores the command for each user in their home directory. But what if i have 2 users having the same home directory, then how to distniguish shish user have...
4,331
Posted By charbel
I understand what you have said but the...
I understand what you have said but the .sh_history stores all commands entered by all users (i.e. its the shell history and not the user history). What i am looking for here is the user history.
...
4,331
Posted By charbel
script -a filename
Dear All,

I have a small question but the answer might not be small :)

I am using the following command "script -a filename" to record commands executed by user.
As you know, the above...
2,344
Posted By charbel
what about if the output files are of the...
what about if the output files are of the following format:

Account1 10
and so on.....then what fields to be interchanged in your command?
1,934
Posted By charbel
Final Output
Hi There,

I am having two output files having the following information:

Output1:
Name1 0
Name2 222
Name3 598
Name4 9800

Output2:
Name1 10
Name2 333
Name3 567
Name4 39003

as you...
2,038
Posted By charbel
thx alot, i have tried what u said and everything...
thx alot, i have tried what u said and everything seems to be working fine.....
Showing results 1 to 25 of 41

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