Search Results

Search: Posts Made By: anshu ranjan
3,063
Posted By anshu ranjan
Thanks Ravinder ..! It works as expected .. :)
Thanks Ravinder ..!
It works as expected .. :)
3,063
Posted By anshu ranjan
Remove word after special character "/"
Hi There,

I have one requirement to remove word after character "/".

Input file is
2017-07-12|02|user1l|domain1/userl|0
2017-07-12|02|user2|domain1/user2|5...
13,859
Posted By anshu ranjan
Thanks a lot Rabinder ... it worked perfectly...
Thanks a lot Rabinder ...
it worked perfectly ...
13,859
Posted By anshu ranjan
sed command to add special character (')
I have a file (input) which contains are below.
Member Analytics Engine
Enterprise Manager
Dev Tutorial
I want to change contains as below by using sed command
'Member Analytics Engine';...
1,312
Posted By anshu ranjan
Thanks Rudic ..! I tested and script worked ......
Thanks Rudic ..!
I tested and script worked ... :)
1,312
Posted By anshu ranjan
Thanks for your reply ..!! here are details ...
Thanks for your reply ..!!

here are details

$ uname -a
Linux ABC.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
$ echo $0
-bash
1,312
Posted By anshu ranjan
Command to pull date
I have one file with below entry. There are multiple entries, but for sample I used just three lines.
my requirment is to create a script by which it will pull only those entries which modification...
958
Posted By anshu ranjan
Thanks to all, while and IFS is working exactly...
Thanks to all,
while and IFS is working exactly as requirement ..!
958
Posted By anshu ranjan
Adding two files
I have a file which entry is below
cat file1


user1
user2
user3


another file, which entry is below
cat file2
Proj1 Fin
Proj2 Marketing

I want O/P as below
Delete User Profile...
1,569
Posted By anshu ranjan
Thanks Sea for your update. I am trying to...
Thanks Sea for your update.
I am trying to remove this thread from this forum but not seeing any option.
I will start this thread as suggested by you.
1,569
Posted By anshu ranjan
Shell script for solving the math question
Can such Puzzle solve through UNIX script? if yes, what could be the code?
This has been solve in C language. we were trying to solve this through shell but could not because of not able to pass 1st...
1,646
Posted By anshu ranjan
Thanks Ravinder, It worked exactly what I needed....
Thanks Ravinder, It worked exactly what I needed. Thanks a lot
1,646
Posted By anshu ranjan
Remove entire line from a file if 1st column matches a pattern
I have one requirement to delete all lines from a file if it matches below scenario. File contains three column. Employee Number, Employee Name and Employee ID

Scenario is: delete all line if...
1,714
Posted By anshu ranjan
Thanks everyone .. this has been resolved. i...
Thanks everyone .. this has been resolved.
i was doing silly mistake. I was using "> File1" but it should be ">>File1"
1,714
Posted By anshu ranjan
Yes, it worked ..!! instead of giving value as...
Yes, it worked ..!!
instead of giving value as "16" i just want to give input of cat projects|wc -l
example

DATE=`date "+%Y-%m-%d"`
value=`cat projects|wc -l`
for (( i=1; i<=$value; i++ )); do...
1,714
Posted By anshu ranjan
Thanks Akshay It worked .. Need one more help...
Thanks Akshay It worked ..
Need one more help
When I do cat projects|wc -l then i get O/P as 16
Now I want to create a file (say file1) where exact 16 entries should be there with only date...
1,714
Posted By anshu ranjan
[Solved] How to create a script by combing two files?
I am trying to generate a csv file for utilization of each project directory. there are 10 filesystem and for each filesystem there are 16 directory.
i was trying to create a script so i created two...
1,345
Posted By anshu ranjan
Thanks .. it worked fine :)
Thanks .. it worked fine :)
1,345
Posted By anshu ranjan
Infinite looping in script
we have one script which we use to send mail in our environment. If we are giving correct attachment script runs fine but if we give a attachment name which is not present on server then this script...
3,929
Posted By anshu ranjan
Thanks ..!! Both command worked fine :)
Thanks ..!!

Both command worked fine :)
3,929
Posted By anshu ranjan
ohh ..sorry ..!! is it clear now? ...
ohh ..sorry ..!!
is it clear now?

actually I am runing command

# cat file1
/tmp/dir1/A1
/tmp/dir1/A2


# awk '{print $1 " \&&echo "scp done" >> out.txt"}' file1 > file2
awk: warning:...
3,929
Posted By anshu ranjan
actually I am runing command # cat file1 ...
actually I am runing command

# cat file1
/tmp/dir1/A1
/tmp/dir1/A2

# awk '{print $1 " \&&echo "scp done" >> out.txt"}' file1 > file2
awk: warning: escape sequence `\&' treated as plain `&'
...
3,929
Posted By anshu ranjan
awk command in special character
Hi,

I want to add below line after end of a file (i.e file1)

&&echo "copy done" >> out.txt


cat file1
scp user1@server1:/tmp/dir /tmp/dir1

my requirment is


cat file1
scp...
1,651
Posted By anshu ranjan
no of files copied by scp command
hi,

I have a script which copy files by using scp command. when i run that script, i can see the process meter but I want to know how many files have been copied.
suppose, by using scp 10 files...
1,052
Posted By anshu ranjan
Thanks a lot Jayan ..!! it worked perfectly...
Thanks a lot Jayan ..!!
it worked perfectly fine :)
Showing results 1 to 25 of 48

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