Search Results

Search: Posts Made By: shekhar_4_u
1,294
Posted By shekhar_4_u
Hi Corona, I believe I could not put my...
Hi Corona,

I believe I could not put my question right way.

This is already a functionality in the bash_profile of root user to make sure if ever someone do "sudo su -" he/she should be asked...
1,294
Posted By shekhar_4_u
Need help with the Script to pass stdin in run time
I have put a script inside bash_profile of user "root". That script executes when we do "sudo su -" and prompts with a question : "Why are you logginf as root?" and users have to pass the reason...
4,478
Posted By shekhar_4_u
Hi All, I will appreciate any help. Thanks.
Hi All,

I will appreciate any help. Thanks.
4,478
Posted By shekhar_4_u
okay. So below is the explanation and error. ...
okay. So below is the explanation and error.

1. The script which I have put on my Windows machine: abc.ps1

echo "Hello World!"
import-module ActiveDirectory
get-adcomputer -Filter * |select...
4,478
Posted By shekhar_4_u
Running Powershell Script from Linux through Cygwin
Hello Experts,

I am creating a run time powershell script on Linux machine and copying that powershell script to Windows machine. To connect to windows through "ssh", I am using Cygwin tool. To...
1,015
Posted By shekhar_4_u
Thanks @Scrutinizer ..it works. Apologies for not...
Thanks @Scrutinizer ..it works. Apologies for not posting correct format earlier.
1,015
Posted By shekhar_4_u
Thanks Ravinder. This works like a charm. But...
Thanks Ravinder. This works like a charm. But that was a sample file gave. My actual file looks like this

"ABC","ABC@xyz.com","Mr...
1,015
Posted By shekhar_4_u
Change 10th column formatting.
Hi Experts,

I created a powershell script to fetch user details from active directory and export it to a csv/excel.


"abc","bcd","devloper;admin"
"bcd","dca","tester;QA;admin"



So here...
1,298
Posted By shekhar_4_u
Please try this: awk ' { for (i=1;...
Please try this:

awk '
{
for (i=1; i<=NR; i++)
{
print $0 " " NF
}
}' unix.txt
10,292
Posted By shekhar_4_u
Thank you so much. That's what I was looking for....
Thank you so much. That's what I was looking for. Now I will check in my script how I can I implement this.
10,292
Posted By shekhar_4_u
Thanks for the advise. Can you please duplicate...
Thanks for the advise. Can you please duplicate my testing script and show me how fuser handles this?
10,292
Posted By shekhar_4_u
To check if a file is open and in use (logs are being written to it)
Hello Experts,

I need to write a shell script to check if a file is open and something is being written to it. I want to know how OS handles it. I checked with lsof command but it is not working....
Forum: Programming 08-10-2015
2,939
Posted By shekhar_4_u
Python[Issue in converting .py to .exe using py2exe
Hi Experts,

Good morning.

I am trying to convert my hello.py to hello .exe file.

I followed the steps as mentioned in the documentation but getting errors in the end. Please help.

What I...
6,373
Posted By shekhar_4_u
Thanks guys! I appreciate your responses.
Thanks guys! I appreciate your responses.
6,373
Posted By shekhar_4_u
Thanks..It worked like a magic :) Could...
Thanks..It worked like a magic :)


Could you please explain the logic as well? I never used FN in awk so it will be a learning for me.:)
6,373
Posted By shekhar_4_u
Want to grep records in alphabetical order from a file and split into other files
Hi All,

I have one file containing thousands of table names in single column. Now I want that file split into multiple files e.g one file containing table names starting from A, other containing...
1,771
Posted By shekhar_4_u
Corrected my script and it works fine for me- ...
Corrected my script and it works fine for me-

[root@Shekhar folder]# ls -ltr
total 0
-rw-r--r-- 1 root root 0 Sep 30 02:44 2014 2014_file9.txt
-rw-r--r-- 1 root root 0 Sep 30 02:44 2014...
1,771
Posted By shekhar_4_u
Try this: #!/bin/bash for i in "*.txt" ...
Try this:


#!/bin/bash
for i in "*.txt"
do
mv $i ${i#*_}
done
Forum: Android 09-05-2013
15,516
Posted By shekhar_4_u
Welcome to the family.:):) Certainly, It is...
Welcome to the family.:):)

Certainly, It is one of the best forums.:b:
Forum: Android 09-04-2013
15,516
Posted By shekhar_4_u
Thanks Corona. I installed BusyBox and...
Thanks Corona.

I installed BusyBox and thereafter I am able to access 'clear', 'vi' etc commands.

I also installed sshd server and client. Accessed my cell through my laptop using ssh also...
Forum: Android 09-02-2013
15,516
Posted By shekhar_4_u
cat > file_name worked for me. I am surprised...
cat > file_name worked for me. I am surprised why I did not try it earlier. Thanks Cero. :b:

saved echo -e -n "\033[2J" in my /system/bin file as 'clear'. Its working now but same problem...
Forum: Android 08-30-2013
15,516
Posted By shekhar_4_u
Thanks Wisecracker!! echo -e -n "\033[2J"...
Thanks Wisecracker!!

echo -e -n "\033[2J" cleared the screen but it didn't take the cursor to top left.

echo -e -n "\x1B[2J\x1B[1;1f" did not work for me.

/bin/ed - I treid earlier also but...
Forum: Android 08-30-2013
15,516
Posted By shekhar_4_u
Thanks everyone for replying!!! I am not...
Thanks everyone for replying!!!


I am not able to even use 'vi', how do I now create file and save in /usr/bin. My phone is Xperia neo v mt 15i. :confused:

echo is working. Print & printf are...
Forum: Android 08-29-2013
15,516
Posted By shekhar_4_u
Basic commands for android!!
Hi,

I have a n android phone and just rooted it. I access it using 'terminal Emulator'. I performed many basic linux-like commands in the terminal like rm,ls,df,reboot etc and they are working...
1,996
Posted By shekhar_4_u
I do not have my system with me to try it right...
I do not have my system with me to try it right now but please check if below works-

sed 's/\(..\)/\2 /g'
Showing results 1 to 25 of 63

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