Search Results

Search: Posts Made By: 24ajay
4,736
Posted By 24ajay
cat filename.txt | grep -w "4"
cat filename.txt | grep -w "4"
2,412
Posted By 24ajay
run sql queries from UNIX shell script.
How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX? :confused:
4,364
Posted By 24ajay
838
Posted By 24ajay
You can try this for accurate result
cat file1 | awk -F"[=;]" '{ print $2,$NF }' | cut -c 1-5," ",13-16
10,003
Posted By 24ajay
To remove ^M character use (ctrl + v) and (ctrl + M)
sed -n 's/ctrl+v,ctrl+M/ /gp' file1
Please use CODE tags and please explain your notation.
10,003
Posted By 24ajay
sed -n 's/ctrl + v,ctrl + M/ /gp' file.log
sed -n 's/ctrl + v,ctrl + M/ /gp' file.log
1,852
Posted By 24ajay
awk -F":" '{print $2,$NF}' ---------- Post...
awk -F":" '{print $2,$NF}'

---------- Post updated at 07:09 AM ---------- Previous update was at 07:08 AM ----------

awk -F":" '{print $2,$NF}' file
3,283
Posted By 24ajay
This will do the trick try it.
awk -F" " '/machine|Owner/ { print}' file
1,338
Posted By 24ajay
Use print not printf and i have added "sort" as well.
cat /etc/passwd | awk -F":" '{ print $1 | "sort"}'
3,839
Posted By 24ajay
943
Posted By 24ajay
with sed command.
sed -n 's/(..)//gp' file
1,370
Posted By 24ajay
This way will also work
awk '{gsub(";jwebsphere=FADFFFGSFGSFGSDGFSDFGSDFGSDF","")}1' Sample
1,223
Posted By 24ajay
awk '$7 ~ /.do$/ { print }' file
awk '$7 ~ /.do$/ { print }' file
1,653
Posted By 24ajay
awk -F" " '/#comments comments/ {gsub("#comments...
awk -F" " '/#comments comments/ {gsub("#comments comments", " ")}1' file

---------- Post updated at 02:42 AM ---------- Previous update was at 02:38 AM ----------

awk -F"[: ]" '...
2,734
Posted By 24ajay
Showing results 1 to 15 of 15

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