Search Results

Search: Posts Made By: Litu1988
6,144
Posted By Litu1988
I am creating a script and this will execute...
I am creating a script and this will execute against many Win OS. the last solution may not work for me becoz I need to have a copy of tst.awk in all the windows OS against which we will execute the...
6,144
Posted By Litu1988
yes it is a windows OS but earlier command was...
yes it is a windows OS but earlier command was also awk that you have suggested and it was executed successfully
6,144
Posted By Litu1988
Scrutinizer, command execution failed with...
Scrutinizer,
command execution failed with below error

\r not recognized as an internal or external command,operable program or batch file.
6,144
Posted By Litu1988
Scrutinizer thanks. attached the output file...
Scrutinizer thanks.

attached the output file

currently it is in below format.
Administrators Guests
None

It would be really gr8 if all the data in a single line with either tab or comma...
6,144
Posted By Litu1988
pls find attached mytxt.txt- actual file ...
pls find attached

mytxt.txt- actual file
mytxt1.txt- expected file(even comma separated format would be fine as output file)

Thanks
6,144
Posted By Litu1988
thanks R Singh it results as below ...
thanks R Singh

it results as below
*Administrators *Guests

with a tab character at the beginning.
6,144
Posted By Litu1988
it results as below Local Group...
it results as below
Local Group MembershipsAdministrators Guests

I need
Administrators Guests
6,144
Posted By Litu1988
How to read data from tab delimited file after a specific position?
Hi Experts,

I have a tab deliminated file as below

myfile.txt
Local Group Memberships *Administrators *Guests

I need data in below format starting from 4th...
2,297
Posted By Litu1988
cat /myfile.txt | awk '$1 ~ /^ aa*/' > /mynew.txt...
cat /myfile.txt | awk '$1 ~ /^ aa*/' > /mynew.txt

---------- Post updated at 08:17 PM ---------- Previous update was at 08:13 PM ----------

awk '/aa/' /myfile.txt > newfile.txt

this seems to...
2,297
Posted By Litu1988
Create a new file from another file with lines begins with a specific string
Hi,

I have a file with below format
myfile.txt
aa
aa1
aa2
qq
aa4
ghs
aa6
bbc
gdf

I m looking to create a file where lines begins with aa.

myfile1.txt
aa
aa1
aa2
2,195
Posted By Litu1988
this file may contain other entries as well. does...
this file may contain other entries as well. does this logic will work ?

also would you pls explain this command.
2,195
Posted By Litu1988
Replace a specific column with a specific value
Hi,

I am looking to replacing value of a specific column of /etc/pam.d/system-auth file. My file looks like this

password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
...
3,112
Posted By Litu1988
thanks a lot R Singh...
thanks a lot R Singh...
3,112
Posted By Litu1988
thanks for the reply. But we are trying to avoid...
thanks for the reply. But we are trying to avoid use of awk command. can we do the same using grep, sed or cut command.
16,666
Posted By Litu1988
the above screen shot is the output of the...
the above screen shot is the output of the command . see the very 1st line ...it's the same command you suggested....
16,666
Posted By Litu1988
I executed the same command you suggested. Not...
I executed the same command you suggested. Not sure where its going wrong.
3,112
Posted By Litu1988
How find Linux version from command line?
Hi,

I am looking to extract linux version from /etc/*-release file.

I am specifically tring to avoid use of awk command here. would be great if can do done via sed or grep command.

Red Hat...
16,666
Posted By Litu1988
when i tried manually executing from command line...
when i tried manually executing from command line

https://mail.google.com/mail/u/0/?ui=2&ik=b96553a45c&view=att&th=14830e6b47fd7b31&attid=0.1&disp=emb&zw&atsh=1

am i doing something wrong?
16,666
Posted By Litu1988
Hi Gull04, I tried your way. But changes...
Hi Gull04,

I tried your way. But changes were not reflected in /etc/fstab or /etc/mtab file.

do i need to restart the server for changes to reflect in the file ?

I have fstab in below format...
16,666
Posted By Litu1988
Hi Perderabo/ gull04, Thanks for the...
Hi Perderabo/ gull04,

Thanks for the response. I will try this out and update this thread. I am using RHEL 5 and RHEL 6 Version.

Hopefully, gu1104's solution will work. currently we are...
16,666
Posted By Litu1988
How to add nodev for /dev/shm partition in Linux using shell script?
Hi,
Please guide me how to add nodev option for /dev/shm partition.

I am new to scripting and looking to do via command line.

Thanks
Litu
Showing results 1 to 21 of 21

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