How will I insert a line "abcdef" at every 100th line of a file?
Answer Posted / aayan
sed '1~100iabcdef' filename.txt
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
Is it possible to substitute "ls" command in the place of "echo" command?
How do I run a shell script in powershell?
What is meant by $1 in shell script?
What is eval in shell script?
How do you know which shell I am using?
What will happen to my current process when I execute a command using exec?
What is sh in shell script?
How to replace following lines, catch (DAOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } catch (BOException e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw e; } catch (Exception e) { objLogger.error(this.getClass () + "addUpdateIssues() " + e); throw new BOException(5122); } Needs to be changed in to, catch (DAOException e) { AppException.handleException (null, null, e, null, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); } catch (BOException e) { AppException.handleException (null, null, null, e, null, null, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 0); } catch (Exception e) { AppException.handleException (null, null, null, null, null, e, "BOException", this.getClass() + "addUpdateIssues() ", null, null, null, null, null, null, null, null, 5122); }
What is batch file programming?
write a shell script to check the failed jobs?
What are the default permissions of a file when it is created?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How do I set bash as default shell mac?
How do I open the shell in cmd?
How to set an array in linux?