Search Results

Search: Posts Made By: manishdivs
1,539
Posted By Scrutinizer
Hi, try: sed '1n;$n;s/./&@/7;s/@.../ /'...
Hi, try:
sed '1n;$n;s/./&@/7;s/@.../ /' FileData.txt
6,249
Posted By Scrutinizer
Some sed's understand \t, so then you can use: ...
Some sed's understand \t, so then you can use:
s/^[ \t]*restoredb....
otherwise instead of \t you could enter and actual TAB character, using Ctrl-V - TAB
But I would use this:
sed...
6,249
Posted By Don Cragun
The character class space contains the following...
The character class space contains the following characters in the POSIX and C locales: <space>, <tab>, <form-feed>, <carriage-return>, <newline>, and <vertical-tab>. For what you are doing here, I...
6,249
Posted By bartus11
Try this:perl -pe...
Try this:perl -pe 's/^(line=.*)/#$1\nline=ffffff/' manish
6,249
Posted By Don Cragun
Try:sed 's/^line=.*/#&\ line=ffffff/' file
Try:sed 's/^line=.*/#&\
line=ffffff/' file
6,249
Posted By Scrutinizer
I left out a trailing slash. Try: sed...
I left out a trailing slash. Try:
sed 's/^line=.*/#&\
line=ffffff/' file

--edit--
Don Cragun beat me to it :)
2,778
Posted By radoulov
You can do it all in shell without invoking...
You can do it all in shell without invoking external programs:

for f in *; do
mv -- "$f" "$f"_Normal
done

In addition, the shell-only solution won't break on pathological filenames.
You...
2,778
Posted By msabhi
sh is used to execute the piped output from sed...
sh is used to execute the piped output from sed command...you can use your "shell" name there
3,258
Posted By Don Cragun
In case bipinajith's answer doesn't give you...
In case bipinajith's answer doesn't give you enough information to figure out what is going on, maybe the following will help. The "remembered pattern" mentioned by bipinajith is known in the...
13,350
Posted By Chubler_XL
This is called sourcing and the shell reads the...
This is called sourcing and the shell reads the commands from the source file and executes them in the current shell.

When you use ./setprompt the current interactive shell spawns a new child...
13,350
Posted By Chubler_XL
Try this: in file setprompt put: unset _h...
Try this: in file setprompt put:

unset _h _m _s
eval $(date "+_h=%H ;_m=%M ;_s=%S")
((SECONDS = 3600*${_h#0}+60*${_m#0}+${_s#0}))
typeset -Z2 _h _m _s
_tsub="(_m=(SECONDS/60%60)) ==...
1,414
Posted By elixir_sinari
You need to know that whenever you type in...
You need to know that whenever you type in anything on the command line, your shell interprets the command line first and then the corresponding commands are called.


When your current directory...
Showing results 1 to 12 of 12

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