Search Results

Search: Posts Made By: ashok.k
5,614
Posted By ashok.k
Hi, Thanks, It works fine with grep command....
Hi,

Thanks, It works fine with grep command.

Ashok
5,614
Posted By ashok.k
UNIX command -Filter rows in fixed width file based on column values
Hi All,

I am trying to select the rows in a fixed width file based on values in the columns.

I want to select only the rows if column position 3-4 has the value AB

I am using cut command to...
11,417
Posted By ashok.k
Hi, Currently i have hardcoded the FTP user...
Hi,

Currently i have hardcoded the FTP user name and password in the script.

I did not use any config file.

Config file should have all the FTP user ids and password to access different...
11,417
Posted By ashok.k
FTP credentials from a config file
Hi,

I am using the following syntax to connect to an FTP server and paste the file.
Based on the value in the variable $Folder, i want to connect to different folders on the same server. The...
3,788
Posted By ashok.k
Check last line in a file ended with newline or not
Hi,

How to check if the last line in a file has ended with carriage return or not?

How to check this in shell script and and add new line programatically?

Thanks
Ashok
3,788
Posted By ashok.k
Why sed command deletes last line in a file if no carriage return?
Hi

I am using sed command to make SCORE=somevalue to SCORE=blank in a file.

Please see the attached lastline.txt file. After executing the below command on the file, it removes the last...
1,493
Posted By ashok.k
sed command to replace a value
Hi,

Thanks for your reply. Below is the content of my file. How to replace SCCORE=somevalue to SCORE=blank in all the places in the file.

Please note that SCORE will have different values...
1,493
Posted By ashok.k
sed command removes lines in file
Hi,

I am modifying a file with sed command. i want to make SCORE= blank in the file whereever SCORE=somevalue.

What will *$ do in the below command?
cat $file | sed...
12,500
Posted By ashok.k
Crons -Last run time and errorlog
Hi

There are few crons running under my account. How to check the last run time of the Cron and if it has run successfully without any errors.

Also if there are any errors while running,...
3,468
Posted By ashok.k
Number of files in a directory modified on a date
Hi

How to list all the files in a directory that are modified on a particular date?

Also need to know the count,i.e number of files modified on a particular date.

Thanks
Ashok
1,820
Posted By ashok.k
Cron jobs of all accounts
Hi

I want to view the schedules of all the crons under all accounts running on the UNIX server.

crontab -l list the crons under my account. How to view the cron schedule of other accounts?...
4,406
Posted By ashok.k
thanks it shows 64-bit sparcv9 kernel modules ...
thanks it shows
64-bit sparcv9 kernel modules


thanks
Ashok
4,406
Posted By ashok.k
UNIX OS 32 or 64 bit
Hi

How to find if the OS is 32 bit or 64 bit?

uname -a returns the following output.

-SunOS machineName 5.10 Generic_138888-02 sun4u sparc SUNW,SPARC-Enterprise


thanks
Ashok
2,330
Posted By ashok.k
Removing blank lines in a file
Hi
I have a text file that has blank lines at different places.

How to remove all the blank lines in a file?

Thanks
Ashok
7,150
Posted By ashok.k
Comparing the modified dates of files in two directories
Hi

Is it possible to compare the modified dates of all the files in two directories using shell script?

I would like to take a backup of a directory in production server regularly.
...
4,746
Posted By ashok.k
Output results of multiple commands to a file
Hi

I want to output the results of multiple commands to a single file.

I use simple Ping, telnet commands to check the connectivity to many servers.

Can i execute all the commands and...
Showing results 1 to 16 of 16

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