Search Results

Search: Posts Made By: ravigupta2u
1,600
Posted By ravigupta2u
Grep command
I am using below command to grep a string in all the dir/subdir:

find /home -exec grep 'balance1212' {} /dev/null \;

I'm getting a lot of lines like below:

grep: can't open...
1,182
Posted By ravigupta2u
Error while checking file existance
Kindly help on below script:

<<

i='find ...'

if [ -f $i ] then
echo 'File Exists'
else
echo 'File Does Not Exist'

>>

If i has some file name then it runs properly but if i has...
1,202
Posted By ravigupta2u
Below is the command to find the files which are...
Below is the command to find the files which are 10 minutes old:
find /home/guptar/wrk/prn* -mmin +5
But unable to use this with if condition. Please guide me.
1,202
Posted By ravigupta2u
Find the file
Hi,

I am not expert in unix shell scripting but able to write simple one. So please help me to implement following functionality.

There are two directories :
1) /home/guptar/wrk
2)...
1,875
Posted By ravigupta2u
Thanks for responding me. I tried above command...
Thanks for responding me. I tried above command but giving below error:

"find: missing conjunction"

Please suggest me to avoid this.
1,875
Posted By ravigupta2u
Find/grep Command
Kinldy help me to write the find command on following:

There are different version of file 'abc.txt' located in many folders similar as below.

/home/gupta/abc.txt
...
1,090
Posted By ravigupta2u
Please let me know how can I use this?
Please let me know how can I use this?
1,090
Posted By ravigupta2u
Identifying the file completion
Hi,

A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file.

I need to rename this file once all the data is populated. Kindly suggest me How...
3,559
Posted By ravigupta2u
No I dont have back up. Can we roll back rm...
No I dont have back up.

Can we roll back rm command?
3,559
Posted By ravigupta2u
File recovery
Hi,

Please let me know the way to recover the files deleted from home directory by 'rm*' command .

Thanks in advance.
1,255
Posted By ravigupta2u
File with double quotes
I have one file a.txt as below.
a.txt
"aaas","111111","ewwee32e","deee333",
"aaas","111111","ewwee32e","deee333",
"aaas","111111","ewwee32e","deee333",
"aaas","111111","ewwee32e","deee333",

I...
1,945
Posted By ravigupta2u
Text File Manipulation
Hi,

I need to write shell script for the scenario explained below -

datafile.txt

AcctNum,code,Region,,,,
12345451,AN ,abaab
12345452,AN ,xccxc
76677545,RP ,acxcc
43567878,RP...
9,478
Posted By ravigupta2u
Please help me to handle below scenerio - ...
Please help me to handle below scenerio -

1) File abc.txt has approx 10,000 records in it. It can have more records.
2) Above, script to be executed to transfer the file from ready to downloaded...
9,478
Posted By ravigupta2u
Validation in shell script.
PICKUPDIR=/home/ready/
DROPDIR=/home/downloaded/
TODAY=$(date '+%d%m%y')
LOGFILE=xyz-$TODAY.log
###########
#FUNCTIONS#
###########
#function to perform file transfer to servercopy folder...
1,311
Posted By ravigupta2u
Validate before moving files.
File Format
dataline1,12,,,,;
dataline2,24,,,;
dataline3,12,,,,;
dataline4,24,,,;
COUNT=0004;


Hi,

I have source(/home/rgupta) and destination folders /home/rgupta/arch and...
1,479
Posted By ravigupta2u
Hi, As I am very new to shell...
Hi,

As I am very new to shell scripting.Could you please help me to rite the script?

Thanks a lot.
1,479
Posted By ravigupta2u
Text File difference.
Hi,

I have wrote the query on this issue but i hope i have not explained properly. So i am writing again. Sorry for trouble.

file1.txt.arch
...
6,264
Posted By ravigupta2u
Unable to do.
Please help me to write an shell script to compare above two files in a way so that three files can be generated with following data -

1) First file should have the records which are missing in...
1,807
Posted By ravigupta2u
Comparision of two files.
File Structure
file1.txt.arch

029429288,1,,,02087400376,N,02087400376,N,0,02087400376,N,0,0,8010,08000151736,U,N,,08000151736,U,20100726111237,20100726111237,0,20100726111651,00004140,16,16,10,N;...
6,264
Posted By ravigupta2u
Compare two files line by line
Query:
There are two files as below -
/home/rgupta/input/file.txt.arch (source file)
/home/rgupta/output/file.txt (destination file)

Files details are attached for the reference.
...
1,692
Posted By ravigupta2u
Urgent - Comma delimited file comparision.
Query:
There are two files as below –
/home/rgupta/input/file.txt.arch (source file)
/home/rgupta/output/file.txt (destination file)

Files details are attached for the reference.
...
1,165
Posted By ravigupta2u
FTP the files
Hi,

Currenty I am transfering the files which are in list-test.txt. Below is the code for same -


file_ftp ()
{
while read inFile
do
#inFile=abc.arch.gz
FILETYPE=$inFile
...
1,258
Posted By ravigupta2u
The list contains follwing files - ...
The list contains follwing files -

TA710005PD12270900490013070608.arch.gz
TA710005PD12270900490001070608.arch.gz
TA710005PD12270900490005070608.arch.gz
TA710005PD12270900490002070608.arch.gz
...
1,258
Posted By ravigupta2u
FTP files
Hi,

I have to transfer the files from one unix box to abnother. Below is the function i have written -

file_ftp ()
{
#for inFile in `cat /home/rgupta/list-test.txt`
#do
...
10,594
Posted By ravigupta2u
Please respond to my query
Please respond to my query
Showing results 1 to 25 of 30

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